Revision: 29907
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29907
Author:   campbellbarton
Date:     2010-07-03 21:06:49 +0200 (Sat, 03 Jul 2010)

Log Message:
-----------
disable ref-counting for groups. groups work differently where they are only 
removed on load if they include no objects.
this was causing groups to be removed by rna if a group's field was cleared and 
the file was saved (even when it was used elsewhere).

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_group.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_group.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_group.c    2010-07-03 
17:47:06 UTC (rev 29906)
+++ trunk/blender/source/blender/makesrna/intern/rna_group.c    2010-07-03 
19:06:49 UTC (rev 29907)
@@ -110,6 +110,7 @@
        srna= RNA_def_struct(brna, "Group", "ID");
        RNA_def_struct_ui_text(srna, "Group", "Group of Object datablocks");
        RNA_def_struct_ui_icon(srna, ICON_GROUP);
+       RNA_def_struct_clear_flag(srna, STRUCT_ID_REFCOUNT); /* this is done on 
save/load in readfile.c, removed if no objects are in the group */
 
        prop= RNA_def_property(srna, "dupli_offset", PROP_FLOAT, 
PROP_TRANSLATION);
        RNA_def_property_float_sdna(prop, NULL, "dupli_ofs");


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to