diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 583a52ed52e3..1a704f3a1542 100644 --- a/editor/editor_inspector.cpp +++ b/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) {