Fix 2 #29846. Effector point ave variable can be NULL.
authorLukas Toenne <lukas.toenne@googlemail.com>
Mon, 28 May 2012 19:10:57 +0000 (19:10 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Mon, 28 May 2012 19:10:57 +0000 (19:10 +0000)
source/blender/blenkernel/intern/effect.c

index eb84f4ae9c0c11ef8044a5e71dc8e802f93ccd07..b5254b97844beb69391d78dc693474e4a0908acd 100644 (file)
@@ -929,7 +929,8 @@ static void do_physical_effector(EffectorCache *eff, EffectorData *efd, Effected
                }
        }
 
-       zero_v3(point->ave);
+       if (point->ave)
+               zero_v3(point->ave);
        if (pd->flag & PFIELD_DO_ROTATION && point->ave && point->rot) {
                float xvec[3] = {1.0f, 0.0f, 0.0f};
                float dave[3];