Selaa lähdekoodia

fix with no hscript

Nicolas Cannasse 4 vuotta sitten
vanhempi
commit
9599eb5fe0
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      hrt/prefab/rfx/Configurator.hx

+ 4 - 0
hrt/prefab/rfx/Configurator.hx

@@ -123,7 +123,9 @@ class Configurator extends RendererFX {
 	override function makeInstance(ctx:Context):Context {
 	override function makeInstance(ctx:Context):Context {
 		for( v in vars )
 		for( v in vars )
 			values.set(v.name, v.defValue);
 			values.set(v.name, v.defValue);
+		#if hscript
 		interp = null;
 		interp = null;
+		#end
 		return super.makeInstance(ctx);
 		return super.makeInstance(ctx);
 	}
 	}
 
 
@@ -165,10 +167,12 @@ class Configurator extends RendererFX {
 		#end
 		#end
 	}
 	}
 
 
+	#if hscript
 	override function end(r:h3d.scene.Renderer, step:h3d.impl.RendererFX.Step) {
 	override function end(r:h3d.scene.Renderer, step:h3d.impl.RendererFX.Step) {
 		if( step == Overlay )
 		if( step == Overlay )
 			interp.restoreVars();
 			interp.restoreVars();
 	}
 	}
+	#end
 
 
 	#if editor
 	#if editor
 	override function getHideProps() : HideProps {
 	override function getHideProps() : HideProps {