mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[unity] Fixed SpineAtlasRegionDrawer label error, closes #1245
This commit is contained in:
parent
c054f2ea2b
commit
08b5418185
@ -543,7 +543,8 @@ namespace Spine.Unity.Editor {
|
||||
} else if (atlasProp.objectReferenceValue == null) {
|
||||
EditorGUI.LabelField(position, "ERROR:", "Atlas variable must not be null!");
|
||||
return;
|
||||
} else if (atlasProp.objectReferenceValue.GetType() != typeof(AtlasAssetBase)) {
|
||||
} else if (!atlasProp.objectReferenceValue.GetType().IsSubclassOf(typeof(AtlasAssetBase)) &&
|
||||
atlasProp.objectReferenceValue.GetType() != typeof(AtlasAssetBase)) {
|
||||
EditorGUI.LabelField(position, "ERROR:", "Atlas variable must be of type AtlasAsset!");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user