-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated material replaces original on save in MeshInstance3D #67206
Comments
Related to #60849. |
As we figured out in #67893: This does not happen if the material is named
|
This issue can probably be closed now due to #66706 being merged |
Duplicate of #54774 |
Godot version
4.0 beta 2 (also in commit 15a8e17)
System information
Linux (also tested on Windows 10), Vulkan
Issue description
When duplicating a material, MeshInstance3D nodes that have the original material set in surface_material_override will have these materials replaced with the duplicated material when saving and restarting the Godot editor.
Steps to reproduce
mat1.material
, set the Albedo to an arbitrary colormat1.material
and select duplicate, name the new materialmat2.material
mat2.material
New BoxMesh
as its meshmat1.material
onto the new cube. It should have the color inmat1.material
mat1.material
, the cube'ssurface_material_override
should now be set tomat2.material
For the attached minimal reproduction project:
mat1.material
in thematerials
folder onto the cube in the main scenemat1.material
, the cube'ssurface_material_override
should now be set tomat2.material
Minimal reproduction project
gd-mat-duplicate-master.zip
The text was updated successfully, but these errors were encountered: