mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[unity] Use IHasRendererObject
This commit is contained in:
parent
d97c80df7d
commit
da3f84b38c
@ -623,7 +623,7 @@ namespace Spine.Unity.Modules.AttachmentTools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool IsRenderable (Attachment a) {
|
static bool IsRenderable (Attachment a) {
|
||||||
return a is RegionAttachment || a is MeshAttachment;
|
return a is IHasRendererObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -294,7 +294,7 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsRenderable (this Attachment a) {
|
public static bool IsRenderable (this Attachment a) {
|
||||||
return a is RegionAttachment || a is MeshAttachment;
|
return a is IHasRendererObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Transform Modes
|
#region Transform Modes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user