Browse Source

SpatialRendererFX: remove preview of spatialRendererFX in editor

lviguier 3 months ago
parent
commit
1ceff0c418
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hrt/prefab/rfx/SpatialRendererFX.hx

+ 2 - 0
hrt/prefab/rfx/SpatialRendererFX.hx

@@ -12,10 +12,12 @@ class SPRFXObject extends h3d.scene.Object {
 	override function sync(ctx : h3d.scene.RenderContext) {
 		super.sync(ctx);
 
+		#if !editor
 		if (renderer == null) {
 			this.renderer = ctx.scene.renderer;
 			this.renderer.effects.push(@:privateAccess sprfx.instance);
 		}
+		#end
 	}
 
 	override function onRemove() {