浏览代码

Remove error when property is outside inspector

kobewi 1 年之前
父节点
当前提交
c060ff8b41
共有 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) {