mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
Fixes property revert after saving instanced scene
This commit is contained in:
parent
825ab3b784
commit
a2c1593f25
@ -358,10 +358,6 @@ bool EditorPropertyRevert::may_node_be_in_instance(Node *p_node) {
|
||||
Node *node = p_node;
|
||||
|
||||
while (node) {
|
||||
if (node->get_scene_instance_state().is_valid()) {
|
||||
might_be = true;
|
||||
break;
|
||||
}
|
||||
if (node == edited_scene) {
|
||||
if (node->get_scene_inherited_state().is_valid()) {
|
||||
might_be = true;
|
||||
@ -370,6 +366,10 @@ bool EditorPropertyRevert::may_node_be_in_instance(Node *p_node) {
|
||||
might_be = false;
|
||||
break;
|
||||
}
|
||||
if (node->get_scene_instance_state().is_valid()) {
|
||||
might_be = true;
|
||||
break;
|
||||
}
|
||||
node = node->get_owner();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user