You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you make a material and save it as a file, you can then make a duplicate in the file browser of Godot editor.
Unfortunately, if you do so, you will be stuck in the broken scene loop:
Editing each copy will affect their look in runtime (but not in the editor) – all of them will look the same in runtime
Deleting any copy will break the game (and the scene), unless you'll re-create the same name copy (or clean the scene file manually)
So, you should not be allowed to copy material files, or they have to receive a unique ID if being copied. Otherwise, it will cause issues at runtime and the deletion of such broken materials.
Steps to reproduce
Make a material
Save it as a file with .material format
Assign to something (like cube mesh)
Make another cube mesh
Duplicate the material in the file browser (with right click - duplicate)
Change new material
Assign to the second mesh
Run the game (all copies look the same)
Optionally:
Delete any copy
Run the game
It crashed, due to missed material (that isn't even used)
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
PS. It is possible, that many other file formats (like scenes) are also affected, I just haven't faced this as my daily use case. This one is just the most obvious one – make a copy of the material and just plug in some other maps.
Godot version
[4.0] alpha (any)
System information
Windows 10, but it's irrelevant
Issue description
So, you should not be allowed to copy material files, or they have to receive a unique ID if being copied. Otherwise, it will cause issues at runtime and the deletion of such broken materials.
Steps to reproduce
Optionally:
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: