mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
Revert unintended removed line
This commit is contained in:
parent
d245f8b745
commit
6b42c488e8
@ -59,6 +59,7 @@ namespace UnityAtoms.Editor
|
||||
// Calculate rect for configuration button
|
||||
Rect buttonRect = new Rect(position);
|
||||
buttonRect.yMin += _popupStyle.margin.top;
|
||||
buttonRect.yMax = buttonRect.yMin + EditorGUIUtility.singleLineHeight;
|
||||
buttonRect.width = _popupStyle.fixedWidth + _popupStyle.margin.right;
|
||||
position.xMin = buttonRect.xMax;
|
||||
|
||||
@ -73,7 +74,7 @@ namespace UnityAtoms.Editor
|
||||
var usageTypePropertyName = GetUsages(property)[newUsageValue].PropertyName;
|
||||
var usageTypeProperty = property.FindPropertyRelative(usageTypePropertyName);
|
||||
|
||||
if(usageTypeProperty == null)
|
||||
if (usageTypeProperty == null)
|
||||
{
|
||||
EditorGUI.LabelField(position, "[Non serialized value]");
|
||||
}
|
||||
@ -84,7 +85,7 @@ namespace UnityAtoms.Editor
|
||||
var valueFieldHeight = EditorGUI.GetPropertyHeight(usageTypeProperty, label);
|
||||
usageTypeProperty.isExpanded = expanded;
|
||||
|
||||
if (usageTypePropertyName == "_value" && (valueFieldHeight > EditorGUIUtility.singleLineHeight+2))
|
||||
if (usageTypePropertyName == "_value" && (valueFieldHeight > EditorGUIUtility.singleLineHeight + 2))
|
||||
{
|
||||
EditorGUI.PropertyField(originalPosition, usageTypeProperty, GUIContent.none, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user