Browse Source

FBXWriter: filter emitters

lviguier 1 year ago
parent
commit
8ee40a3ea7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hxd/fmt/fbx/Writer.hx

+ 2 - 1
hxd/fmt/fbx/Writer.hx

@@ -801,7 +801,8 @@ class Writer {
 			this.out = new haxe.io.BytesOutput();
 
 		function clean( obj : h3d.scene.Object ) : h3d.scene.Object {
-			if (Std.downcast(obj, h3d.scene.Interactive) != null)
+			if (Std.downcast(obj, h3d.scene.Interactive) != null ||
+				Std.downcast(obj, hrt.prefab.fx.Emitter.EmitterObject) != null)
 				return null;
 
 			var o = new h3d.scene.Object();