Merged changes in the trunk up to revision 35203.
[blender.git] / source / blender / makesrna / intern / rna_main.c
index b01d217376ad3aff28c9e30254c7c40969b5fbc9..db48ac23101b8dd072ecce5f320e3b1514ff6a4e 100644 (file)
@@ -224,6 +224,12 @@ static void rna_Main_wm_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
        rna_iterator_listbase_begin(iter, &bmain->wm, NULL);
 }
 
+static void rna_Main_linestyle_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
+{
+       Main *bmain= (Main*)ptr->data;
+       rna_iterator_listbase_begin(iter, &bmain->linestyle, NULL);
+}
+
 #ifdef UNIT_TEST
 
 static PointerRNA rna_Test_test_get(PointerRNA *ptr)
@@ -285,6 +291,7 @@ void RNA_def_main(BlenderRNA *brna)
                {"actions", "Action", "rna_Main_action_begin", "Actions", "Action datablocks.", RNA_def_main_actions},
                {"particles", "ParticleSettings", "rna_Main_particle_begin", "Particles", "Particle datablocks.", RNA_def_main_particles},
                {"grease_pencil", "GreasePencil", "rna_Main_gpencil_begin", "Grease Pencil", "Grease Pencil datablocks.", RNA_def_main_gpencil},
+               {"linestyles", "FreestyleLineStyle", "rna_Main_linestyle_begin", "Line Styles", "Line Style datablocks.", RNA_def_main_linestyles},
                {NULL, NULL, NULL, NULL, NULL, NULL}};
 
        int i;