diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-15 10:29:22 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-15 10:31:48 +0400 |
commit | 4f1a5192c24595798942b6ce8d704031e9fda8de (patch) | |
tree | ec3ceddaee5ee96268a6114af42b74e6aab84d57 /intern | |
parent | e1e519bfc0a088a031b8015ac05ace618c5eff82 (diff) |
Fix T39742: Crash with Cycles + new autosmooth crash
Nice little mistake, since the invalid mem access only happened once (the first time),
was close to valid mem, and was only used to read, it would not crash often...
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/blender/blender_mesh.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_mesh.cpp b/intern/cycles/blender/blender_mesh.cpp index dce1109aa88..29aecee09c2 100644 --- a/intern/cycles/blender/blender_mesh.cpp +++ b/intern/cycles/blender/blender_mesh.cpp @@ -271,6 +271,7 @@ static void create_mesh(Scene *scene, Mesh *mesh, BL::Mesh b_mesh, const vector< for(b_mesh.vertices.begin(v); v != b_mesh.vertices.end(); ++v, ++N) *N = get_float3(v->normal()); + N = attr_N->data_float3(); /* create generated coordinates from undeformed coordinates */ if(mesh->need_attribute(scene, ATTR_STD_GENERATED)) { |