You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix default NodePaths saved in scene
This commit is contained in:
@@ -4118,7 +4118,7 @@ HashMap<StringName, Variant> EditorNode::get_modified_properties_for_node(Node *
|
||||
Variant revert_value = EditorPropertyRevert::get_property_revert_value(p_node, E.name, &is_valid_revert);
|
||||
Variant current_value = p_node->get(E.name);
|
||||
if (is_valid_revert) {
|
||||
if (PropertyUtils::is_property_value_different(current_value, revert_value)) {
|
||||
if (PropertyUtils::is_property_value_different(p_node, current_value, revert_value)) {
|
||||
// If this property is a direct node reference, save a NodePath instead to prevent corrupted references.
|
||||
if (E.type == Variant::OBJECT && E.hint == PROPERTY_HINT_NODE_TYPE) {
|
||||
Node *target_node = Object::cast_to<Node>(current_value);
|
||||
|
||||
Reference in New Issue
Block a user