mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 17:48:45 +08:00
[unity] Handle null preview texture in editor.
This commit is contained in:
parent
7c29b9573a
commit
b502aa3c23
@ -726,6 +726,9 @@ namespace Spine.Unity.Editor {
|
||||
}
|
||||
|
||||
void DoRenderPreview (bool drawHandles) {
|
||||
if (this.PreviewUtilityCamera.activeTexture == null || this.PreviewUtilityCamera.targetTexture == null )
|
||||
return;
|
||||
|
||||
GameObject go = this.m_previewInstance;
|
||||
|
||||
if (m_requireRefresh && go != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user