Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-05-08 17:25:16 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-05-08 17:27:49 +0400
commit19bddbfc54110b55ead9b538d9958842cca6d98e (patch)
treecfa4b3925bfe9795e9715e32f777f67d09dd4d96
parent105aa67cda63311c2986fe22167b54e05205b125 (diff)
Fix T40079: cycles crash with objects that have hair motion blur, but no triangle motion.
-rw-r--r--intern/cycles/render/mesh.cpp2
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);