浏览代码

fixed jquery requirement only if -D editor

ncannasse 7 年之前
父节点
当前提交
69ec04ec54
共有 4 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      h3d/mat/Material.hx
  2. 1 1
      h3d/mat/PbrMaterial.hx
  3. 1 1
      h3d/scene/pbr/Renderer.hx
  4. 1 1
      hxd/impl/AnyProps.hx

+ 1 - 1
h3d/mat/Material.hx

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

+ 1 - 1
h3d/mat/PbrMaterial.hx

@@ -207,7 +207,7 @@ class PbrMaterial extends Material {
 			return m;
 	}
 
-	#if js
+	#if editor
 	override function editProps() {
 		var props : PbrProps = props;
 		if( props.emissive == 0 ) Reflect.deleteField(props,"emissive");

+ 1 - 1
h3d/scene/pbr/Renderer.hx

@@ -383,7 +383,7 @@ class Renderer extends h3d.scene.Renderer {
 		env.power = props.envPower;
 	}
 
-	#if js
+	#if editor
 	override function editProps() {
 		var props : RenderProps = props;
 		return new js.jquery.JQuery('

+ 1 - 1
hxd/impl/AnyProps.hx

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