Skip to content

Fix dragging materials onto meshes #87425

@kangxi333

Description

@kangxi333

Tested versions

  • Reproducible in v4.2.stable.mono.official [46dc277]
  • Reproducible in v4.3.dev1.mono.official [9d1cbab]
  • Not reproducible in v3.5.3.stable.official [6c81413] (dragging materials not a feature then I don't think)

System information

Godot v4.2.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 (NVIDIA; 31.0.15.4629) - Intel(R) Core(TM) i7-10700KF CPU @ 3.80GHz (16 Threads)

Issue description

When dragging materials onto meshes, other meshes in the path of your cursor while dragging will be reset to whatever they were originally. This only happens when dragging a material over the same material.

This can be bypassed by directly assigning the materials in the inspector but it's hidden under submenus, which is annoying for a task that needs to be repeated often.

This does not happen with shader materials, but shader materials cannot be dragged.

world.tscn.-.DragMaterialsBugProj.-.Godot.Engine.2024-01-21.10-02-43.mp4

The meshes were created in Blender, exported in GLTF, and "made local" in the actual tscn file.

Steps to reproduce

  1. Open world.tscn
  2. Drag a material (StandardMaterial3D) onto a mesh
  3. Drag again, with your cursor movement crossing the path of the first mesh you changed the material off
  4. It should reset the first meshes texture to whatever its default is.

Minimal reproduction project (MRP)

DragMaterialsBugProj.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions