[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20533] branches/soc-2009-yukishiro/source /blender/sh/intern/compute.c: Fix crash in lightpaint code.

Martin Poirier theeth at yahoo.com
Sun May 31 17:59:55 CEST 2009


Revision: 20533
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20533
Author:   theeth
Date:     2009-05-31 17:59:54 +0200 (Sun, 31 May 2009)

Log Message:
-----------
Fix crash in lightpaint code. 

Coeffs calculation started loop on active base instead of first in list.

Modified Paths:
--------------
    branches/soc-2009-yukishiro/source/blender/sh/intern/compute.c

Modified: branches/soc-2009-yukishiro/source/blender/sh/intern/compute.c
===================================================================
--- branches/soc-2009-yukishiro/source/blender/sh/intern/compute.c	2009-05-31 14:54:31 UTC (rev 20532)
+++ branches/soc-2009-yukishiro/source/blender/sh/intern/compute.c	2009-05-31 15:59:54 UTC (rev 20533)
@@ -252,7 +252,7 @@
 
 void SH_ComputeSceneCoefficients(Scene *scene, View3D *v3d)
 {
-	Base *base = scene->basact;
+		Base *base = NULL;
         Object *ob;
         Mesh *me;
         DerivedMesh *dm;
@@ -265,7 +265,7 @@
 
         // for now, just use single-thread
         // use derived mesh...
-        for (base = scene->basact; base; base = base->next) {
+        for (base = scene->base.first; base; base = base->next) {
                 ob = base->object;
                 me = get_mesh(ob);
                 if (me == NULL) continue;





More information about the Bf-blender-cvs mailing list