HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

Could not export property of type godot.variant.Color #54

Closed EliteMasterEric closed 1 year ago

EliteMasterEric commented 1 year ago

The following code:

    @:export
    public var color(default, default):godot.variant.Color = godot.variant.Color.BLACK;

Throws the following build error:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
haxe build.hxml -debug -D HXCPP_GC_GENERATIONAL -D HXCPP_CPP11 -D static_link -cpp bin/ -cp bindings -D HXCPP_M64
C:\Haxe\Haxe425\haxe\lib\hxgodot/git/src/godot/macros/Macros.hx:687: characters 29-104 : godot.variant.Color should be godot.variant.Variant
src/elitemastereric/VisibleStaticBody.hx:6: lines 6-20 : ... Defined in this class
C:\Haxe\Haxe425\haxe\lib\hxgodot/git/src/godot/macros/Macros.hx:687: characters 29-104 : godot.variant.Color should be godot.variant.Variant
src/elitemastereric/VisibleStaticBody.hx:6: lines 6-20 : ... Defined in this class
scons: *** [bin\libHxGodot-debug.lib] Error 1
scons: building terminated because of errors.
dazKind commented 1 year ago

Fixed with 55fdfb4