Skip to content

Commit

Permalink
fix: do not change existing EnumProperty numeric IDs, otherwise it wo…
Browse files Browse the repository at this point in the history
…uld break old files saved by our users
  • Loading branch information
ntamas committed Jul 10, 2023
1 parent 19c5904 commit 4ecf2f5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/modules/sbstudio/plugin/model/light_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,16 @@ class LightEffect(PropertyGroup):
("FIRST_COLOR", "First color of color ramp", "", 1),
("LAST_COLOR", "Last color of color ramp", "", 2),
("INDEXED_BY_DRONES", "Indexed by drones", "", 3),
("INDEXED_BY_FORMATION", "Indexed by formation", "", 4),
("GRADIENT_XYZ", "Gradient (XYZ)", "", 5),
("GRADIENT_XZY", "Gradient (XZY)", "", 6),
("GRADIENT_YXZ", "Gradient (YXZ)", "", 7),
("GRADIENT_YZX", "Gradient (YZX)", "", 8),
("GRADIENT_ZXY", "Gradient (ZXY)", "", 9),
("GRADIENT_ZYX", "Gradient (ZYX)", "", 10),
("TEMPORAL", "Temporal", "", 11),
("DISTANCE", "Distance from mesh", "", 12),
("CUSTOM", "Custom expression", "", 13),
("INDEXED_BY_FORMATION", "Indexed by formation", "", 13),
("GRADIENT_XYZ", "Gradient (XYZ)", "", 4),
("GRADIENT_XZY", "Gradient (XZY)", "", 5),
("GRADIENT_YXZ", "Gradient (YXZ)", "", 6),
("GRADIENT_YZX", "Gradient (YZX)", "", 7),
("GRADIENT_ZXY", "Gradient (ZXY)", "", 8),
("GRADIENT_ZYX", "Gradient (ZYX)", "", 9),
("TEMPORAL", "Temporal", "", 10),
("DISTANCE", "Distance from mesh", "", 11),
("CUSTOM", "Custom expression", "", 12),
],
default="LAST_COLOR",
)
Expand Down

0 comments on commit 4ecf2f5

Please sign in to comment.