gdext icon indicating copy to clipboard operation
gdext copied to clipboard

Converting Typed Arrays to Variant Arrays Panics

Open Pspritechologist opened this issue 8 months ago • 12 comments

Passing a typed Array from Godot and attempting to convert it to a VariantArray currently panics (in a very unclear manner). This is unintuitive and unhelpful behavior, and makes dealing with Variants that could be typed Arrays extremely annoying, as you'd need to check against every possible contained type. Attached is a minimum viable reproduction that shows off the issue well.

array_test.zip

I apologize if there's an intended way around this already (or if it's simply not intended), I wasn't able to find any workaround that didn't involve matching to each contained type.

Pspritechologist avatar May 26 '24 01:05 Pspritechologist