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
|
|
@ -1719,7 +1719,7 @@ bool Main::start() {
|
|||
ERR_CONTINUE_MSG(obj == NULL, "Cannot instance script for autoload, expected 'Node' inheritance, got: " + String(ibt));
|
||||
|
||||
n = Object::cast_to<Node>(obj);
|
||||
n->set_script(script_res.get_ref_ptr());
|
||||
n->set_script(script_res);
|
||||
}
|
||||
|
||||
ERR_CONTINUE_MSG(!n, "Path in autoload not a node or script: " + path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue