OSDN Git Service

MMD Ver7.40 対応 新スキーマ開発開始
[mikutoga/Vmd2XML.git] / src / main / java / jp / sfjp / mikutoga / vmd / model / binio / VmdExporter.java
index e04dfd9..1d372e0 100644 (file)
@@ -21,6 +21,7 @@ public class VmdExporter {
     private BasicExporter    basicExporter = null;
     private CameraExporter   cameraExporter = null;
     private LightingExporter lightingExporter = null;
+    private BoolExporter     boolExporter = null;
 
 
     /**
@@ -44,6 +45,7 @@ public class VmdExporter {
         this.basicExporter    = new BasicExporter(ostream);
         this.cameraExporter   = new CameraExporter(ostream);
         this.lightingExporter = new LightingExporter(ostream);
+        this.boolExporter     = new BoolExporter(ostream);
 
         try{
             dumpVmdMotionImpl(motion);
@@ -76,6 +78,13 @@ public class VmdExporter {
         this.lightingExporter.dumpLuminousMotion(motion);
         this.lightingExporter.dumpShadowMotion(motion);
 
+        if(motion.getNumberedFlagList().isEmpty()) return;
+        try{
+            this.boolExporter.dumpNumberedFlagMotion(motion);
+        }catch(IllegalTextExportException e){
+            throw new IllegalVmdDataException(e);
+        }
+
         return;
     }