Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_object.cpp
| Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | if (motion) { | ||||
| } | } | ||||
| return object; | return object; | ||||
| } | } | ||||
| /* test if we need to sync */ | /* test if we need to sync */ | ||||
| bool object_updated = false; | bool object_updated = false; | ||||
| if (object_map.add_or_update(scene, &object, b_ob, b_parent, key)) | if (object_map.add_or_update(&object, b_ob, b_parent, key)) | ||||
| object_updated = true; | object_updated = true; | ||||
| /* mesh sync */ | /* mesh sync */ | ||||
| /* b_ob is owned by the iterator and will go out of scope at the end of the block. | /* b_ob is owned by the iterator and will go out of scope at the end of the block. | ||||
| * b_ob_instance is the original object and will remain valid for deferred geometry | * b_ob_instance is the original object and will remain valid for deferred geometry | ||||
| * sync. */ | * sync. */ | ||||
| object->geometry = sync_geometry(b_depsgraph, | object->geometry = sync_geometry(b_depsgraph, | ||||
| b_ob_instance, | b_ob_instance, | ||||
| ▲ Show 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | void BlenderSync::sync_objects(BL::Depsgraph &b_depsgraph, | ||||
| geom_task_pool.wait_work(); | geom_task_pool.wait_work(); | ||||
| progress.set_sync_status(""); | progress.set_sync_status(""); | ||||
| if (!cancel && !motion) { | if (!cancel && !motion) { | ||||
| sync_background_light(b_v3d, use_portal); | sync_background_light(b_v3d, use_portal); | ||||
| /* handle removed data and modified pointers */ | /* handle removed data and modified pointers */ | ||||
| light_map.post_sync(scene); | light_map.post_sync(); | ||||
| geometry_map.post_sync(scene); | geometry_map.post_sync(); | ||||
| object_map.post_sync(scene); | object_map.post_sync(); | ||||
| particle_system_map.post_sync(scene); | particle_system_map.post_sync(); | ||||
| } | } | ||||
| if (motion) | if (motion) | ||||
| geometry_motion_synced.clear(); | geometry_motion_synced.clear(); | ||||
| } | } | ||||
| void BlenderSync::sync_motion(BL::RenderSettings &b_render, | void BlenderSync::sync_motion(BL::RenderSettings &b_render, | ||||
| BL::Depsgraph &b_depsgraph, | BL::Depsgraph &b_depsgraph, | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||