Merge pull request #72804 from vnen/gdscript-no-onready-without-node
GDScript: Fix inheritance check of @onready for inner classes
This commit is contained in:
commit
7b86a082be
5 changed files with 19 additions and 1 deletions
|
|
@ -0,0 +1,7 @@
|
|||
extends RefCounted
|
||||
|
||||
func test():
|
||||
print("ok")
|
||||
|
||||
class Inner extends Node:
|
||||
@onready var okay = 0
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_OK
|
||||
ok
|
||||
Loading…
Add table
Add a link
Reference in a new issue