mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
EditorNode: Add function to load file as scene or resource
This commit is contained in:
parent
c2ba0a8646
commit
d2d02d0ea8
16 changed files with 57 additions and 142 deletions
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
void PackedSceneEditor::_on_open_scene_pressed() {
|
||||
// Using deferred call because changing scene updates the Inspector and thus destroys this plugin.
|
||||
callable_mp(EditorNode::get_singleton(), &EditorNode::open_request).call_deferred(packed_scene->get_path(), false);
|
||||
callable_mp(EditorNode::get_singleton(), &EditorNode::load_scene).call_deferred(packed_scene->get_path(), false, false, false, false);
|
||||
}
|
||||
|
||||
void PackedSceneEditor::_notification(int p_what) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue