Browse Source

ModelLibrary: fix

Tom Spira 11 tháng trước cách đây
mục cha
commit
8cecf893c9
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      hrt/prefab/l3d/ModelLibrary.hx

+ 4 - 2
hrt/prefab/l3d/ModelLibrary.hx

@@ -592,8 +592,10 @@ class ModelLibrary extends Prefab {
 			tmap.set(key, t);
 
 			tmp.dispose();
-			ntex.dispose();
-			stex.dispose();
+			if( ntex != null )
+				ntex.dispose();
+			if( stex != null )
+				stex.dispose();
 			return t;
 		}