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

This commit is contained in:
2014-12-18 14:40:14 +05:00
parent 2bdd44c87a
commit 20006e4a67
3 changed files with 8 additions and 0 deletions

View File

@@ -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;