You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Implicit inheritance now defaults to Resource, will error for node scripts if extends not used.
This commit is contained in:
@@ -160,6 +160,8 @@ Variant GDScript::_new(const Variant** p_args,int p_argcount,Variant::CallError&
|
||||
_baseptr=_baseptr->_base;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(_baseptr->native.is_null(), Variant());
|
||||
|
||||
if (_baseptr->native.ptr()) {
|
||||
owner=_baseptr->native->instance();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user