소스 검색

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,