Browse Source

RendererFx: handle enabled

Tom SPIRA 4 years ago
parent
commit
9b5c8690f2
1 changed files with 1 additions and 5 deletions
  1. 1 5
      hrt/prefab/rfx/RendererFX.hx

+ 1 - 5
hrt/prefab/rfx/RendererFX.hx

@@ -24,11 +24,7 @@ class RendererFX extends Prefab implements h3d.impl.RendererFX {
 	}
 	}
 
 
 	inline function checkEnabled() {
 	inline function checkEnabled() {
-		#if editor
-		return enableInEditor;
-		#else
-		return true;
-		#end
+		return enabled #if editor && enableInEditor #end;
 	}
 	}
 
 
 	#if editor
 	#if editor