瀏覽代碼

Merge pull request #88597 from KoBeWi/thinking_outside_the_inspector

Remove error when property is outside inspector
Rémi Verschelde 1 年之前
父節點
當前提交
25a52c624e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/editor_inspector.cpp

+ 1 - 1
editor/editor_inspector.cpp

@@ -429,7 +429,7 @@ EditorInspector *EditorProperty::get_parent_inspector() const {
 		}
 		parent = parent->get_parent();
 	}
-	ERR_FAIL_V_MSG(nullptr, "EditorProperty is outside inspector.");
+	return nullptr;
 }
 
 void EditorProperty::set_doc_path(const String &p_doc_path) {