Skip to content

Commit 7833419

Browse files
committed
Call plugin edit before making visible
1 parent fc827bb commit 7833419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/editor_node.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -943,12 +943,12 @@ void EditorNode::_remove_plugin_from_enabled(const String &p_name) {
943943
void EditorNode::_plugin_over_edit(EditorPlugin *p_plugin, Object *p_object) {
944944
if (p_object) {
945945
editor_plugins_over->add_plugin(p_plugin);
946-
p_plugin->make_visible(true);
947946
p_plugin->edit(p_object);
947+
p_plugin->make_visible(true);
948948
} else {
949949
editor_plugins_over->remove_plugin(p_plugin);
950-
p_plugin->make_visible(false);
951950
p_plugin->edit(nullptr);
951+
p_plugin->make_visible(false);
952952
}
953953
}
954954

0 commit comments

Comments
 (0)