Skip to content

Commit 19f90a1

Browse files
committed
#3 SkinController use setDirty in editor fixed
1 parent 2b135fc commit 19f90a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/UnitySpineImporter/SharedScripts/Editor/SkinControllerEditor.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ public override void OnInspectorGUI ()
1818
names.Add(skin.name);
1919

2020
int newId = EditorGUILayout.Popup(sk.activeSkinId, names.ToArray());
21-
if (newId != sk.activeSkinId)
21+
if (newId != sk.activeSkinId){
2222
sk.setSkin (newId);
23+
EditorUtility.SetDirty(target);
24+
}
2325
}
2426
}
27+
2528
}
2629
}

0 commit comments

Comments
 (0)