mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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) {
|
void DoRenderPreview (bool drawHandles) {
|
||||||
|
if (this.PreviewUtilityCamera.activeTexture == null || this.PreviewUtilityCamera.targetTexture == null )
|
||||||
|
return;
|
||||||
|
|
||||||
GameObject go = this.m_previewInstance;
|
GameObject go = this.m_previewInstance;
|
||||||
|
|
||||||
if (m_requireRefresh && go != null) {
|
if (m_requireRefresh && go != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user