[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40210] branches/soc-2008-mxcurioni/source /blender/blenkernel/intern/group.c: Fix for a bug that unlinking a group overlooked a reference to the group in linesets .
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Thu Sep 15 01:21:45 CEST 2011
Revision: 40210
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40210
Author: kjym3
Date: 2011-09-14 23:21:44 +0000 (Wed, 14 Sep 2011)
Log Message:
-----------
Fix for a bug that unlinking a group overlooked a reference to the group in linesets.
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/blenkernel/intern/group.c
Modified: branches/soc-2008-mxcurioni/source/blender/blenkernel/intern/group.c
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/blenkernel/intern/group.c 2011-09-14 22:26:55 UTC (rev 40209)
+++ branches/soc-2008-mxcurioni/source/blender/blenkernel/intern/group.c 2011-09-14 23:21:44 UTC (rev 40210)
@@ -81,6 +81,7 @@
Object *ob;
Scene *sce;
SceneRenderLayer *srl;
+ FreestyleLineSet *lineset;
ParticleSystem *psys;
for(ma= bmain->mat.first; ma; ma= ma->id.next) {
@@ -105,6 +106,11 @@
for(srl= sce->r.layers.first; srl; srl= srl->next) {
if (srl->light_override==group)
srl->light_override= NULL;
+
+ for(lineset= srl->freestyleConfig.linesets.first; lineset; lineset= lineset->next) {
+ if (lineset->group == group)
+ lineset->group= NULL;
+ }
}
}
More information about the Bf-blender-cvs
mailing list