1 Commits
1.8.2 ... 1.8.3

Author SHA1 Message Date
max
5d112a2ced Update MA_TextureAtlasserProInspectorView.cs
Dirty fix for 2020.2+ versions with reordable list.
2021-04-02 17:31:24 +02:00

View File

@ -109,9 +109,11 @@ namespace MA_TextureAtlasserPro
}
SerializedProperty meshesSP = modelGroupsSP.GetArrayElementAtIndex(i).FindPropertyRelative("meshes");
EditorGUILayout.PropertyField(meshesSP, false, GUILayout.ExpandWidth(false), GUILayout.MaxWidth(editorViewRect.width * 0.5f));
if (meshesSP.isExpanded)
#if UNITY_2020_2
#else
EditorGUILayout.PropertyField(meshesSP, false, GUILayout.ExpandWidth(false), GUILayout.MaxWidth(editorViewRect.width * 0.5f));
#endif
if (meshesSP.isExpanded)
{
for (int j = 0; j < curWindow.textureAtlas.selectedTextureQuad.modelGroups[i].meshes.Count; j++)
{
@ -131,8 +133,8 @@ namespace MA_TextureAtlasserPro
{
curWindow.textureAtlas.selectedTextureQuad.modelGroups[i].meshes.Add(null);
}
}
}
}
}
if (GUILayout.Button("+", EditorStyles.miniButton, GUILayout.ExpandWidth(true)))
{