svn merge -r 13177:13240 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / blenloader / intern / writefile.c
index 3326d38c56f9747427e7d3db4e6842935fdc4327..9d766b1e22ec8e7bb0dc85a4b614f4bb54769e07 100644 (file)
@@ -1410,6 +1410,7 @@ static void write_scenes(WriteData *wd, ListBase *scebase)
        MetaStack *ms;
        Strip *strip;
        TimeMarker *marker;
+       TransformOrientation *ts;
        SceneRenderLayer *srl;
        int a;
        
@@ -1514,6 +1515,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);