Forráskód Böngészése

[unity] Handle null preview texture in editor.

John 7 éve
szülő
commit
b502aa3c23

+ 3 - 0
spine-unity/Assets/spine-unity/Asset Types/Editor/SkeletonDataAssetInspector.cs

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