You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
improved get_node(), connect(), etc code completion.
-properly completes text arguments -includes the "/root" autoloads
This commit is contained in:
@@ -3047,7 +3047,7 @@ Error EditorNode::load_scene(const String& p_scene) {
|
||||
|
||||
//_cleanup_scene(); // i'm sorry but this MUST happen to avoid modified resources to not be reloaded.
|
||||
|
||||
Ref<PackedScene> sdata = ResourceLoader::load(lpath);
|
||||
Ref<PackedScene> sdata = ResourceLoader::load(lpath,"",true);
|
||||
if (!sdata.is_valid()) {
|
||||
|
||||
current_option=-1;
|
||||
@@ -3064,6 +3064,8 @@ Error EditorNode::load_scene(const String& p_scene) {
|
||||
return ERR_FILE_NOT_FOUND;
|
||||
}
|
||||
|
||||
sdata->set_path(lpath,true); //take over path
|
||||
|
||||
Node*new_scene=sdata->instance(true);
|
||||
|
||||
if (!new_scene) {
|
||||
|
||||
Reference in New Issue
Block a user