Browse Source

minor opti for hl

Nicolas Cannasse 4 năm trước cách đây
mục cha
commit
62b0fe811e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hrt/prefab/RenderProps.hx

+ 1 - 1
hrt/prefab/RenderProps.hx

@@ -79,7 +79,7 @@ class RenderProps extends Prefab {
 		for( s in children ) {
 			var fx = Std.downcast(s, hrt.prefab.rfx.RendererFX);
 			if( fx != null )
-				renderer.effects.push(fx);
+				renderer.effects.push((fx:h3d.impl.RendererFX));
 			var env = Std.downcast(s, hrt.prefab.l3d.Environment);
 			if( env != null )
 				env.applyToRenderer(renderer);