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
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-29 03:29:42 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-29 03:42:38 +0300
commit6d4d7c7ca3def7f74be9960a2ff59e3c2c817105 (patch)
treedd1389b706796c0bd80d4e5a6c49089cb1eb6fc1 /intern
parent7cbd1b0c98cc974b8cfb4f92da19249346062319 (diff)
Cycles: reduce number of synchronizing object prints.
Do it only for meshes/curves since those are potentially slow and need user feedback to see things are not stuck. For object instances and lights assume it's fast enough. Printing too much can have a performance impact on slow Windows command prompt or when logging complex scene renders.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/blender_mesh.cpp2
-rw-r--r--intern/cycles/blender/blender_object.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/blender/blender_mesh.cpp b/intern/cycles/blender/blender_mesh.cpp
index 41fb36c7618..6c14a9f9a6e 100644
--- a/intern/cycles/blender/blender_mesh.cpp
+++ b/intern/cycles/blender/blender_mesh.cpp
@@ -1039,6 +1039,8 @@ Mesh *BlenderSync::sync_mesh(BL::Depsgraph& b_depsgraph,
if(mesh_synced.find(mesh) != mesh_synced.end())
return mesh;
+ progress.set_sync_status("Synchronizing object", b_ob.name());
+
mesh_synced.insert(mesh);
/* create derived mesh */
diff --git a/intern/cycles/blender/blender_object.cpp b/intern/cycles/blender/blender_object.cpp
index a6f30db23c4..a296488a14a 100644
--- a/intern/cycles/blender/blender_object.cpp
+++ b/intern/cycles/blender/blender_object.cpp
@@ -544,8 +544,6 @@ void BlenderSync::sync_objects(BL::Depsgraph& b_depsgraph, float motion_time)
BL::DepsgraphObjectInstance b_instance = *b_instance_iter;
BL::Object b_ob = b_instance.object();
- progress.set_sync_status("Synchronizing object", b_ob.name());
-
/* load per-object culling data */
culling.init_object(scene, b_ob);