File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3438,8 +3438,10 @@ void EditorPropertyResource::update_property() {
3438
3438
sub_inspector->set_use_doc_hints (true );
3439
3439
3440
3440
EditorInspector *parent_inspector = get_parent_inspector ();
3441
- ERR_FAIL_NULL (parent_inspector);
3442
- sub_inspector->set_root_inspector (parent_inspector->get_root_inspector ());
3441
+ if (parent_inspector != nullptr ) {
3442
+ sub_inspector->set_root_inspector (parent_inspector->get_root_inspector ());
3443
+ sub_inspector->register_text_enter (parent_inspector->search_box );
3444
+ }
3443
3445
3444
3446
sub_inspector->set_property_name_style (InspectorDock::get_singleton ()->get_property_name_style ());
3445
3447
@@ -3454,7 +3456,6 @@ void EditorPropertyResource::update_property() {
3454
3456
sub_inspector->set_focus_mode (FocusMode::FOCUS_NONE);
3455
3457
3456
3458
sub_inspector->set_use_filter (use_filter);
3457
- sub_inspector->register_text_enter (parent_inspector->search_box );
3458
3459
3459
3460
add_child (sub_inspector);
3460
3461
set_bottom_editor (sub_inspector);
You can’t perform that action at this time.
0 commit comments