Jed 4 vuotta sitten
vanhempi
commit
9de6017a05
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      hrt/prefab/rfx/PostProcess.hx

+ 2 - 2
hrt/prefab/rfx/PostProcess.hx

@@ -206,10 +206,10 @@ class PostProcess extends RendererFX {
 				continue;
 				continue;
 			var prop = makeShaderParam(v);
 			var prop = makeShaderParam(v);
 			if( prop == null ) continue;
 			if( prop == null ) continue;
-			props.push({name: v.name, t: prop, def: Reflect.field(props, v.name)});
+			props.push({name: v.name, t: prop, def: Reflect.field(this.props, v.name)});
 		}
 		}
 		group.append(hide.comp.PropsEditor.makePropsList(props));
 		group.append(hide.comp.PropsEditor.makePropsList(props));
-		ectx.properties.add(group, props, function(pname) {
+		ectx.properties.add(group, this.props, function(pname) {
 			ectx.onChange(this, pname);
 			ectx.onChange(this, pname);
 			updateInstance(ectx.rootContext, pname);
 			updateInstance(ectx.rootContext, pname);