Explorar el Código

Exporter: don't export non-visible objects

lviguier hace 1 año
padre
commit
4a98fd3acd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      hxd/fmt/fbx/Writer.hx

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

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