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

Register the export info correctly when a global class script is used as the variable type for Node

This commit is contained in:
PreslavPetrov
2024-05-04 18:41:01 +01:00
parent 0d11108a01
commit 653a8b113a
4 changed files with 38 additions and 10 deletions

View File

@@ -1,6 +1,8 @@
class_name ExportVariableTest
extends Node
const Utils = preload("../../utils.notest.gd")
const PreloadedScript = preload("./export_variable.notest.gd")
# Built-in types.
@export var test_weak_int = 1
@@ -20,6 +22,10 @@ const Utils = preload("../../utils.notest.gd")
@export var test_image: Image
@export var test_timer: Timer
# Global custom classes.
@export var test_global_class: ExportVariableTest
@export var test_preloaded_script: PreloadedScript
# Arrays.
@export var test_array: Array
@export var test_array_bool: Array[bool]