You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Call plugin edit before making visible
This commit is contained in:
@@ -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) {
|
||||
if (p_object) {
|
||||
editor_plugins_over->add_plugin(p_plugin);
|
||||
p_plugin->make_visible(true);
|
||||
p_plugin->edit(p_object);
|
||||
p_plugin->make_visible(true);
|
||||
} else {
|
||||
editor_plugins_over->remove_plugin(p_plugin);
|
||||
p_plugin->make_visible(false);
|
||||
p_plugin->edit(nullptr);
|
||||
p_plugin->make_visible(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user