ShiroSmith 6 lat temu
rodzic
commit
87f5e65540
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      hxd/prefab/ContextShared.hx

+ 1 - 0
hxd/prefab/ContextShared.hx

@@ -76,6 +76,7 @@ class ContextShared {
 		if(r != null)
 			return r;
 		var cl = Type.resolveClass(path.split("/").join("."));
+		if(cl == null) return null;
 		var shader = new hxsl.SharedShader(Reflect.field(cl, "SRC"));
 		r = {
 			shader: shader,