Open SysError99 opened 6 months ago
Weirdly enough, if the built-in script gets inherited using a global class registration (class_name
fields), the inherited class instead shows exports from the parent class instead of the internal class from the parent. And yes, it still works properly in runtime
Snapshot:
BuiltInScriptExportBug.zip
Tested versions
3.5.3-stable
System information
6.1.71-1-MANJARO
Issue description
export
in built-in scripts not working with parent classes that inherit from internal classes in the AutoLoad. The ones from the script itself seem to work fine. The class gets inherited properly in runtime, however.Steps to reproduce
export var my_parent_node_path: NodePath export var my_parent_string = ""
class MyClass extends Node: export var node_path: NodePath export var my_string = ""
func _ready() -> void: print(name + ":: I'm from BundleClass")
export
for the built-in script itself.Minimal reproduction project (MRP)
BuiltInScriptExportBug.zip