[Bf-blender-cvs] [f172f2b] master: Cycles: Improve logging about motion blur a bit

Sergey Sharybin noreply at git.blender.org
Tue Apr 26 16:17:21 CEST 2016


Commit: f172f2b146fc1d112f17cb67d7a3a77f52a3baee
Author: Sergey Sharybin
Date:   Tue Apr 26 16:17:11 2016 +0200
Branches: master
https://developer.blender.org/rBf172f2b146fc1d112f17cb67d7a3a77f52a3baee

Cycles: Improve logging about motion blur a bit

===================================================================

M	intern/cycles/blender/blender_mesh.cpp

===================================================================

diff --git a/intern/cycles/blender/blender_mesh.cpp b/intern/cycles/blender/blender_mesh.cpp
index ef19366..55ef913 100644
--- a/intern/cycles/blender/blender_mesh.cpp
+++ b/intern/cycles/blender/blender_mesh.cpp
@@ -976,7 +976,12 @@ void BlenderSync::sync_mesh_motion(BL::Object& b_ob,
 			   memcmp(mP, &mesh->verts[0], sizeof(float3)*numverts) == 0)
 			{
 				/* no motion, remove attributes again */
-				VLOG(1) << "No actual deformation motion for object " << b_ob.name();
+				if(b_mesh.vertices.length() != numverts) {
+					VLOG(1) << "Topology differs, disabling motion blur.";
+				}
+				else {
+					VLOG(1) << "No actual deformation motion for object " << b_ob.name();
+				}
 				mesh->attributes.remove(ATTR_STD_MOTION_VERTEX_POSITION);
 				if(attr_mN)
 					mesh->attributes.remove(ATTR_STD_MOTION_VERTEX_NORMAL);




More information about the Bf-blender-cvs mailing list