Browse Source

Remove error when property is outside inspector

kobewi 1 năm trước cách đây
mục cha
commit
c060ff8b41
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {