Browse Source

fixed #if editor compilation

Nicolas Cannasse 10 months ago
parent
commit
645c658a6a
1 changed files with 1 additions and 1 deletions
  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,