svn merge -r 16320:16369 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / blenloader / intern / writefile.c
index 6bed9e0c4152ccb804897508e71fabc16dca5b2d..179e548747dede9f3142e0be425d6a2ab0167fe3 100644 (file)
@@ -1853,6 +1853,7 @@ static void write_texts(WriteData *wd, ListBase *idbase)
 {
        Text *text;
        TextLine *tmp;
+       TextMarker *mrk;
 
        text= idbase->first;
        while(text) {
@@ -1876,7 +1877,16 @@ static void write_texts(WriteData *wd, ListBase *idbase)
                                writedata(wd, DATA, tmp->len+1, tmp->line);
                                tmp= tmp->next;
                        }
+
+                       /* write markers */
+                       mrk= text->markers.first;
+                       while (mrk) {
+                               writestruct(wd, DATA, "TextMarker", 1, mrk);
+                               mrk= mrk->next;
+                       }
                }
+
+
                text= text->id.next;
        }