|
@@ -943,12 +943,12 @@ void EditorNode::_remove_plugin_from_enabled(const String &p_name) {
|
|
void EditorNode::_plugin_over_edit(EditorPlugin *p_plugin, Object *p_object) {
|
|
void EditorNode::_plugin_over_edit(EditorPlugin *p_plugin, Object *p_object) {
|
|
if (p_object) {
|
|
if (p_object) {
|
|
editor_plugins_over->add_plugin(p_plugin);
|
|
editor_plugins_over->add_plugin(p_plugin);
|
|
- p_plugin->make_visible(true);
|
|
|
|
p_plugin->edit(p_object);
|
|
p_plugin->edit(p_object);
|
|
|
|
+ p_plugin->make_visible(true);
|
|
} else {
|
|
} else {
|
|
editor_plugins_over->remove_plugin(p_plugin);
|
|
editor_plugins_over->remove_plugin(p_plugin);
|
|
- p_plugin->make_visible(false);
|
|
|
|
p_plugin->edit(nullptr);
|
|
p_plugin->edit(nullptr);
|
|
|
|
+ p_plugin->make_visible(false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|