1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #91364 from vnen/gdscript-implicit-ready-base-first

GDScript: Call implicit ready on base script first
This commit is contained in:
Rémi Verschelde
2024-05-02 17:31:32 +02:00
4 changed files with 36 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
#GH-63329
class A extends Node:
@onready var a := get_value("a")
func get_value(var_name: String) -> String:
print(var_name)
return var_name
class B extends A:
@onready var b := get_value("b")
func _ready():
pass
func test():
var node := B.new()
node._ready()
node.free()

View File

@@ -0,0 +1,3 @@
GDTEST_OK
a
b