mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-27 03:53:01 +00:00
Merge pull request #155 from minenice55/enum-bugfix
fix bug with non-sequential enum properties
This commit is contained in:
commit
9ce9f42278
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