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
Issue description:
when resetting a resource to default at editor inspector, it sets reference to the default resource at ClassDB::default_value, which leads multiple nodes refer to same resource (if those nodes were resetted)
Steps to reproduce:
create a path (path1)
draw curve (path1's curve is curve1)
reset curve (now path1's curve is default_curve)
redraw path1 curve (editting default_curve)
create another path (path2)
draw curve (path2's curve is curve2)
reset curve (now path2's curve is default_curve)
(now path1 and path2 are overlapped)
set path2's position to some value (ex: y=400) to see those paths seperately
edit paths2's curve -> path1's curve also effected
Minimal reproduction project:
The text was updated successfully, but these errors were encountered:
To do so, Object gets a new virtual `object_duplicate` (`duplicate`
already taken by incompatible implementations in derived classes)
which is implemented in `Node` and `Resource`.
This allows fixing godotengine#36372 properly in `ClassDB` by duplicating
Objects that need it to avoid using the same one as default value.
(So far it seems only Path2D/Path3D's `curve` property uses this.)
Fixesgodotengine#36372.
Fixesgodotengine#36650.
Supersedes godotengine#36644 and godotengine#36656.
Fixesgodotengine#36372 as Path2D/Path3D's `curve` property no longer uses a Curve
instance as default value, but instead it gets a (unique) default Curve
instance when created through the editor (CreateDialog).
ClassDB gets a sanity check to ensure that we don't do the same mistake
for other properties in the future, but instead use the dedicated
property usage hint.
Fixesgodotengine#36372.
Fixesgodotengine#36650.
Supersedes godotengine#36644 and godotengine#36656.
Co-authored-by: Thakee Nathees <thakeenathees@gmail.com>
Co-authored-by: simpuid <utkarsh.email@yahoo.com>
Godot version: 3.2.stable
OS/device including version: Win 64
Issue description:
when resetting a resource to default at editor inspector, it sets reference to the default resource at ClassDB::default_value, which leads multiple nodes refer to same resource (if those nodes were resetted)
Steps to reproduce:
(now path1 and path2 are overlapped)
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: