浏览代码

Fix for folding "Editable Children" nodes in Scene tree not being saved

Yahkub-R 1 年之前
父节点
当前提交
b89aee45d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/editor_folding.cpp

+ 1 - 1
editor/editor_folding.cpp

@@ -93,7 +93,7 @@ void EditorFolding::_fill_folds(const Node *p_root, const Node *p_node, Array &p
 		if (!p_node->get_owner()) {
 			return; //not owned, bye
 		}
-		if (p_node->get_owner() != p_root && !p_root->is_editable_instance(p_node)) {
+		if (p_node->get_owner() != p_root && !p_root->is_editable_instance(p_node->get_owner())) {
 			return;
 		}
 	}