[Bf-blender-cvs] [80220dd] hair_system: Fix for bad memory access: interp_weights_face_v3 requires a full 4 float elements, even if one or more vectors are not used.
Lukas Tönne
noreply at git.blender.org
Tue Aug 5 17:49:49 CEST 2014
Commit: 80220dda4b92e6da1a60555a8b99e62479945b16
Author: Lukas Tönne
Date: Tue Aug 5 17:49:46 2014 +0200
Branches: hair_system
https://developer.blender.org/rB80220dda4b92e6da1a60555a8b99e62479945b16
Fix for bad memory access: interp_weights_face_v3 requires a full 4
float elements, even if one or more vectors are not used.
===================================================================
M source/blender/editors/physics/hair_ops.c
===================================================================
diff --git a/source/blender/editors/physics/hair_ops.c b/source/blender/editors/physics/hair_ops.c
index f52d56c..6768340 100644
--- a/source/blender/editors/physics/hair_ops.c
+++ b/source/blender/editors/physics/hair_ops.c
@@ -137,7 +137,7 @@ static bool hair_copy_particle_emitter_location(Object *UNUSED(ob), ParticleSyst
MFace *mface;
float *co1, *co2, *co3, *co4;
float vec[3];
- float w[3];
+ float w[4];
if (!psys_get_index_on_dm(psys, dm, pa, &mapindex, mapfw))
return false;
More information about the Bf-blender-cvs
mailing list