浏览代码

fixed #if editor compilation

Nicolas Cannasse 10 月之前
父节点
当前提交
645c658a6a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,