Browse Source

fix with no hscript

Nicolas Cannasse 4 năm trước cách đây
mục cha
commit
9599eb5fe0
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 {
 		for( v in vars )
 			values.set(v.name, v.defValue);
+		#if hscript
 		interp = null;
+		#end
 		return super.makeInstance(ctx);
 	}
 
@@ -165,10 +167,12 @@ class Configurator extends RendererFX {
 		#end
 	}
 
+	#if hscript
 	override function end(r:h3d.scene.Renderer, step:h3d.impl.RendererFX.Step) {
 		if( step == Overlay )
 			interp.restoreVars();
 	}
+	#end
 
 	#if editor
 	override function getHideProps() : HideProps {