Skip to content

Commit b9cacff

Browse files
authored
Merge pull request #55 from Unity-Technologies/property-drawer-fixes
Fixed bug with vector fields in Inspector
2 parents 28a1921 + 513139b commit b9cacff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
6969
if (attribute is DoNotNormalizeAttribute && string.IsNullOrEmpty(label.tooltip))
7070
label.tooltip = Content.doNotNormalizeTooltip;
7171

72+
EditorGUI.BeginProperty(position, label, property);
7273
EditorGUI.MultiPropertyField(position, subLabels, property.FindPropertyRelative(startIter), label);
74+
EditorGUI.EndProperty();
7375
}
7476
}
7577
}

0 commit comments

Comments
 (0)