瀏覽代碼

fbx epxorter: scene hierarchy

LeoVgr 1 年之前
父節點
當前提交
7110d1bdc2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hide/comp/SceneEditor.hx

+ 1 - 1
hide/comp/SceneEditor.hx

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