Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.
This commit is contained in:
parent
53cf289f30
commit
867d073b98
51 changed files with 446 additions and 573 deletions
|
|
@ -1473,7 +1473,7 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
|
|||
} else {
|
||||
|
||||
post_import_script = Ref<EditorScenePostImport>(memnew(EditorScenePostImport));
|
||||
post_import_script->set_script(scr.get_ref_ptr());
|
||||
post_import_script->set_script(scr);
|
||||
if (!post_import_script->get_script_instance()) {
|
||||
EditorNode::add_io_error(TTR("Invalid/broken script for post-import (check console):") + " " + post_import_script_path);
|
||||
post_import_script.unref();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue