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.
This commit is contained in:
Brecht Van Lommel 2019-03-29 01:29:42 +01:00
parent 7cbd1b0c98
commit 6d4d7c7ca3
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

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