[unity] Handle null preview texture in editor.

This commit is contained in:
John 2017-10-25 20:30:23 +08:00 committed by GitHub
parent 7c29b9573a
commit b502aa3c23

View File

@ -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) {