Skip to content

String Array properties treated as Color type #210

@Loxtir

Description

@Loxtir

Godot version: 4.3.stable, 4.4.dev4

Describe the bug
Just updated from Pandora alpha 6 to alpha 9.
In String Array properties, every value is treated as a Color.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new category with an array property.
  2. Add any value, for example "1".
  3. Try to save, you will get an error "Invalid color name: 1." If you use Color names as values, you will not get this error, but you will get the next ones.
  4. Reload the project.
  5. Try and edit the array values, you will get another error: "Pandora error: value (0, 0, 0, 1) is incompatible with type <RefCounted#-9223370148864261134>" and the value 1 will be lost.
  6. When closing the Array manager window, you will get the following error: "res://addons/pandora/ui/components/array_editor/array_manager.gd:49 - Invalid operands 'Color' and 'String' in operator '=='.".

Expected behavior
Working array properties as in alpha 6.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: no
  • Version: alpha 9

Additional context
This also modified my existing pandora.data file, changing every array.
Screenshot 2024-11-12 172002

Edit
On further investigation, the issue seems to be with the String type, since the bool, int, float and vector2 types work correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions