Skip to content

Commit

Permalink
fix: MaskFieldのEnumコンバートの不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
pspkurara committed Nov 6, 2020
1 parent 16f3ac5 commit 2d9d53e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Packages/uGUI-Skinner/Editor/SkinnerEditorGUILayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ public static void MaskField(GUIContent label, SerializedProperty property, stri
if (castedProperty != -1)
{
displayValue = 0;
for (var i = 0; i < optionValues.Length; ++i)
for (var i = 0; i < optionValues.Length; i++)
{
if (0 < (castedProperty & (1 << optionValues[i])))
if (0 < (castedProperty & optionValues[i]))
displayValue |= 1 << i;
}
}
Expand All @@ -320,10 +320,10 @@ public static void MaskField(GUIContent label, SerializedProperty property, stri
if (displayResult != -1)
{
result = 0;
for (var i = 0; i < optionValues.Length; ++i)
for (var i = 0; i < optionValues.Length; i++)
{
if (0 < (displayResult & (1 << i)))
result |= 1 << optionValues[i];
result |= optionValues[i];
}
}

Expand Down

0 comments on commit 2d9d53e

Please sign in to comment.