MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _plugin_over_edit

Method _plugin_over_edit

editor/editor_node.cpp:1143–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1141}
1142
1143void EditorNode::_plugin_over_edit(EditorPlugin *p_plugin, Object *p_object) {
1144 if (p_object) {
1145 editor_plugins_over->add_plugin(p_plugin);
1146 p_plugin->edit(p_object);
1147 p_plugin->make_visible(true);
1148 } else {
1149 editor_plugins_over->remove_plugin(p_plugin);
1150 p_plugin->edit(nullptr);
1151 p_plugin->make_visible(false);
1152 }
1153}
1154
1155void EditorNode::_plugin_over_self_own(EditorPlugin *p_plugin) {
1156 active_plugins[p_plugin->get_instance_id()].insert(p_plugin);

Callers

nothing calls this directly

Calls 4

add_pluginMethod · 0.45
editMethod · 0.45
make_visibleMethod · 0.45
remove_pluginMethod · 0.45

Tested by

no test coverage detected