godot-dictionary-inspector icon indicating copy to clipboard operation
godot-dictionary-inspector copied to clipboard

complex types as keys are not added but still visible (3.5)

Open Qubus0 opened this issue 2 years ago • 4 comments

godot version 3.5

Hey there, many of the more complex types can't be added as key twice unless you manually change one of the values. Rect2, Transform2D, Plane and more have this issue. The way it's done with Vector2 and Vector3 (just incrementing one of the values) works well, that should be adaptable to all of these types as well.

The strange thing is that the key is not added, but the row for it still appears (it disappears when folding and unfolding the dictionary) When trying to edit the value, this error appears because it assumes that the row actually exists res://addons/dictionary_inspector/elements/dict_property_editor.gd:55 - Invalid get index '1' (on base: 'Array').

Qubus0 avatar Feb 18 '23 09:02 Qubus0