Generate scene ID for created built-in Resources
This commit is contained in:
parent
987832be46
commit
73de8bf165
3 changed files with 3 additions and 3 deletions
|
|
@ -2562,7 +2562,7 @@ void SceneTreeDock::_script_created(Ref<Script> p_script) {
|
|||
}
|
||||
|
||||
if (p_script->is_built_in()) {
|
||||
p_script->set_path(edited_scene->get_scene_file_path() + "::");
|
||||
p_script->set_path(edited_scene->get_scene_file_path() + "::" + p_script->generate_scene_unique_id());
|
||||
}
|
||||
|
||||
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue