Commit: 20006e4a677512d709d938c169156566b369b563
Author: Sergey Sharybin
Date:   Thu Dec 18 14:40:14 2014 +0500
Branches: master
https://developer.blender.org/rB20006e4a677512d709d938c169156566b369b563

Cycles: Do some logging when motion is detected in the scene

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

M       intern/cycles/blender/blender_camera.cpp
M       intern/cycles/blender/blender_mesh.cpp
M       intern/cycles/blender/blender_object.cpp

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

diff --git a/intern/cycles/blender/blender_camera.cpp 
b/intern/cycles/blender/blender_camera.cpp
index ce8c64c..416348f 100644
--- a/intern/cycles/blender/blender_camera.cpp
+++ b/intern/cycles/blender/blender_camera.cpp
@@ -20,6 +20,8 @@
 #include "blender_sync.h"
 #include "blender_util.h"
 
+#include "util_logging.h"
+
 CCL_NAMESPACE_BEGIN
 
 /* Blender Camera Intermediate: we first convert both the offline and 3d view
@@ -400,6 +402,7 @@ void BlenderSync::sync_camera_motion(BL::Object b_ob, float 
motion_time)
        tfm = blender_camera_matrix(tfm, cam->type);
 
        if(tfm != cam->matrix) {
+               VLOG(1) << "Camera " << b_ob.name() << " motion detected.";
                if(motion_time == -1.0f) {
                        cam->motion.pre = tfm;
                        cam->use_motion = true;
diff --git a/intern/cycles/blender/blender_mesh.cpp 
b/intern/cycles/blender/blender_mesh.cpp
index a5e4b7b..e8da8a8 100644
--- a/intern/cycles/blender/blender_mesh.cpp
+++ b/intern/cycles/blender/blender_mesh.cpp
@@ -27,6 +27,7 @@
 #include "subd_split.h"
 
 #include "util_foreach.h"
+#include "util_logging.h"
 
 #include "mikktspace.h"
 
@@ -761,11 +762,13 @@ void BlenderSync::sync_mesh_motion(BL::Object b_ob, 
Object *object, float motion
                if(new_attribute) {
                        if(i != numverts || memcmp(mP, &mesh->verts[0], 
sizeof(float3)*numverts) == 0) {
                                /* no motion, remove attributes again */
+                               VLOG(1) << "No actual motion for mesh " << 
b_mesh.name();
                                
mesh->attributes.remove(ATTR_STD_MOTION_VERTEX_POSITION);
                                if(attr_mN)
                                        
mesh->attributes.remove(ATTR_STD_MOTION_VERTEX_NORMAL);
                        }
                        else if(time_index > 0) {
+                               VLOG(1) << "Filling motion for mesh " << 
b_mesh.name();
                                /* motion, fill up previous steps that we might 
have skipped because
                                 * they had no motion, but we need them anyway 
now */
                                float3 *P = &mesh->verts[0];
diff --git a/intern/cycles/blender/blender_object.cpp 
b/intern/cycles/blender/blender_object.cpp
index 239e0c6..88bfbf6 100644
--- a/intern/cycles/blender/blender_object.cpp
+++ b/intern/cycles/blender/blender_object.cpp
@@ -30,6 +30,7 @@
 
 #include "util_foreach.h"
 #include "util_hash.h"
+#include "util_logging.h"
 
 CCL_NAMESPACE_BEGIN
 
@@ -251,6 +252,7 @@ Object *BlenderSync::sync_object(BL::Object b_parent, int 
persistent_id[OBJECT_P
                if(object && (scene->need_motion() == Scene::MOTION_PASS || 
object_use_motion(b_ob))) {
                        /* object transformation */
                        if(tfm != object->tfm) {
+                               VLOG(1) << "Object " << b_ob.name() << " motion 
detected.";
                                if(motion_time == -1.0f) {
                                        object->motion.pre = tfm;
                                        object->use_motion = true;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to