diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-05-08 17:25:16 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-05-08 17:27:49 +0400 |
commit | 19bddbfc54110b55ead9b538d9958842cca6d98e (patch) | |
tree | cfa4b3925bfe9795e9715e32f777f67d09dd4d96 /intern | |
parent | 105aa67cda63311c2986fe22167b54e05205b125 (diff) |
Fix T40079: cycles crash with objects that have hair motion blur, but no triangle motion.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/mesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index 9607892ceb8..9c5ddd55010 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -346,7 +346,7 @@ void Mesh::add_vertex_normals() Attribute *attr_mP = attributes.find(ATTR_STD_MOTION_VERTEX_POSITION); Attribute *attr_mN = attributes.find(ATTR_STD_MOTION_VERTEX_NORMAL); - if(has_motion_blur() && !attr_mN) { + if(has_motion_blur() && attr_mP && !attr_mN) { /* create attribute */ attr_mN = attributes.add(ATTR_STD_MOTION_VERTEX_NORMAL); |