mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-13 21:25:09 +00:00
Merge pull request #155 from minenice55/enum-bugfix
fix bug with non-sequential enum properties
This commit is contained in:
commit
299d697d76
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ namespace HeavenStudio.Editor
|
||||||
dropdown.value = selected;
|
dropdown.value = selected;
|
||||||
|
|
||||||
dropdown.onValueChanged.AddListener(_ =>
|
dropdown.onValueChanged.AddListener(_ =>
|
||||||
parameterManager.entity[propertyName] = Enum.ToObject(enumType, dropdown.value)
|
parameterManager.entity[propertyName] = (int) enumVals.GetValue(dropdown.value)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue