=== Custom Transform Orientation ===
[blender.git] / source / blender / blenloader / intern / writefile.c
index 87462ad78f6c60e260c770dc25d834fd362bab5a..9c013fbc1d0848b2868c93d8075c8cf1addd3826 100644 (file)
@@ -1401,6 +1401,7 @@ static void write_scenes(WriteData *wd, ListBase *scebase)
        MetaStack *ms;
        Strip *strip;
        TimeMarker *marker;
+       TransformOrientation *ts;
        SceneRenderLayer *srl;
        int a;
        
@@ -1505,6 +1506,10 @@ static void write_scenes(WriteData *wd, ListBase *scebase)
                for(marker= sce->markers.first; marker; marker= marker->next)
                        writestruct(wd, DATA, "TimeMarker", 1, marker);
                
+               /* writing dynamic list of TransformOrientations to the blend file */
+               for(ts = sce->transform_spaces.first; ts; ts = ts->next)
+                       writestruct(wd, DATA, "TransformOrientation", 1, ts);
+               
                for(srl= sce->r.layers.first; srl; srl= srl->next)
                        writestruct(wd, DATA, "SceneRenderLayer", 1, srl);