Browse Source

fbx exporter: wip exporting scene hierarchy

lviguier 1 year ago
parent
commit
cff336c035
1 changed files with 1 additions and 3 deletions
  1. 1 3
      hide/comp/SceneEditor.hx

+ 1 - 3
hide/comp/SceneEditor.hx

@@ -2781,10 +2781,8 @@ class SceneEditor {
 	function exportSelection() {
 		// Handle the export of selection into a fbx file
 		Ide.inst.chooseFileSave("Export.fbx", function(filePath) {
-			var mesh = curEdit.rootObjects[0].getMeshes()[0];
-
 			var out = new haxe.io.BytesOutput();
-			new hxd.fmt.fbx.Writer(out).write(mesh);
+			new hxd.fmt.fbx.Writer(out).write(cast curEdit.rootObjects[0].getMeshes());
 			sys.io.File.saveBytes(filePath, out.getBytes());
 		});
 	}