Browse Source

fixed #if editor compilation

Nicolas Cannasse 10 tháng trước cách đây
mục cha
commit
645c658a6a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hrt/prefab/DynamicShader.hx

+ 1 - 1
hrt/prefab/DynamicShader.hx

@@ -172,7 +172,7 @@ class DynamicShader extends Shader {
 
 		super.edit(ectx);
 
-		if( (isInstance && !isShadergraph) || loadshaderDef.sclass(true) != null ) {
+		if( (isInstance && !shaderDef.isShaderGraph) || loadShaderClass(true) != null ) {
 			ectx.properties.add(hide.comp.PropsEditor.makePropsList([{
 				name : "isInstance",
 				t : PBool,