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
|
|
@ -497,7 +497,7 @@ void EditorResourcePicker::_edit_menu_cbk(int p_which) {
|
|||
|
||||
Resource *resp = Object::cast_to<Resource>(obj);
|
||||
ERR_BREAK(!resp);
|
||||
resp->set_path(_get_owner_path() + "::"); // Assign a base path for built-in Resources.
|
||||
resp->set_path(_get_owner_path() + "::" + resp->generate_scene_unique_id()); // Assign a base path for built-in Resources.
|
||||
|
||||
EditorNode::get_editor_data().instantiate_object_properties(obj);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue