[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28579] branches/render25/source/blender/ render/intern/source/convertblender.c: Fix light group rendering for case with twice-linked sintel groups.

Brecht Van Lommel brecht at blender.org
Tue May 4 23:19:33 CEST 2010


Revision: 28579
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28579
Author:   blendix
Date:     2010-05-04 23:19:32 +0200 (Tue, 04 May 2010)

Log Message:
-----------
Fix light group rendering for case with twice-linked sintel groups.

Modified Paths:
--------------
    branches/render25/source/blender/render/intern/source/convertblender.c

Modified: branches/render25/source/blender/render/intern/source/convertblender.c
===================================================================
--- branches/render25/source/blender/render/intern/source/convertblender.c	2010-05-04 21:10:26 UTC (rev 28578)
+++ branches/render25/source/blender/render/intern/source/convertblender.c	2010-05-04 21:19:32 UTC (rev 28579)
@@ -236,10 +236,10 @@
 				}
 			}
 			
-			if(lightgroup->id.flag & LIB_DOIT) {
-				BLI_ghash_insert(re->db.lightgrouphash, ma->group, lightgroup);
+			BLI_ghash_insert(re->db.lightgrouphash, ma->group, lightgroup);
+
+			if(lightgroup->id.flag & LIB_DOIT)
 				lightgroup_create(re, lightgroup, ma->mode & MA_GROUP_EXCLUSIVE);
-			}
 		}
 	}
 }





More information about the Bf-blender-cvs mailing list