You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
-Split EditorPlugin into EditorPlugin and EditorInterface
-Added EditorInterface to EditorScript -Added functions to save the scene to EditorInterface
This commit is contained in:
@@ -46,6 +46,11 @@ void EditorScript::add_root_node(Node *p_node) {
|
||||
//editor->set_edited_scene(p_node);
|
||||
}
|
||||
|
||||
EditorInterface *EditorScript::get_editor_interface() {
|
||||
|
||||
return EditorInterface::get_singleton();
|
||||
}
|
||||
|
||||
Node *EditorScript::get_scene() {
|
||||
|
||||
if (!editor) {
|
||||
@@ -83,6 +88,7 @@ void EditorScript::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("add_root_node", "node"), &EditorScript::add_root_node);
|
||||
ClassDB::bind_method(D_METHOD("get_scene"), &EditorScript::get_scene);
|
||||
ClassDB::bind_method(D_METHOD("get_editor_interface"), &EditorScript::get_editor_interface);
|
||||
BIND_VMETHOD(MethodInfo("_run"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user