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...
This commit is contained in:
Bastien Montagne 2014-04-15 08:29:22 +02:00
parent e1e519bfc0
commit 4f1a5192c2
Notes: blender-bot 2023-02-14 10:48:26 +01:00
Referenced by issue #39742, Crash with Cycles + new autosmooth crash
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {