Nicolas Cannasse 1 year ago
parent
commit
03445dfc35
3 changed files with 3 additions and 3 deletions
  1. 1 1
      h3d/mat/Material.hx
  2. 1 1
      h3d/mat/PbrMaterial.hx
  3. 1 1
      hxd/impl/AnyProps.hx

+ 1 - 1
h3d/mat/Material.hx

@@ -283,7 +283,7 @@ class Material extends BaseMaterial {
 			getPass("shadow").culling = mainPass.culling;
 	}
 
-	#if editor
+	#if (editor && js)
 	override function editProps() {
 		return new js.jquery.JQuery('
 			<dl>

+ 1 - 1
h3d/mat/PbrMaterial.hx

@@ -508,7 +508,7 @@ class PbrMaterial extends Material {
 		return m;
 	}
 
-	#if editor
+	#if (editor && js)
 	override function editProps() {
 		var props : PbrProps = props;
 		var layers : Array< { name : String, value : Int }> = hide.Ide.inst.currentConfig.get("material.drawOrder", []);

+ 1 - 1
hxd/impl/AnyProps.hx

@@ -21,7 +21,7 @@ class AnyProps {
 	public function refreshProps() {
 	}
 
-	#if editor
+	#if (editor && js)
 	public function editProps() {
 		return new js.jquery.JQuery('<p>No properties for this object</p>');
 	}