Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_geometry.cpp
| Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | void BlenderSync::sync_geometry_motion(BL::Depsgraph &b_depsgraph, | ||||
| Object *object, | Object *object, | ||||
| float motion_time, | float motion_time, | ||||
| bool use_particle_hair, | bool use_particle_hair, | ||||
| TaskPool *task_pool) | TaskPool *task_pool) | ||||
| { | { | ||||
| /* Ensure we only sync instanced geometry once. */ | /* Ensure we only sync instanced geometry once. */ | ||||
| Geometry *geom = object->get_geometry(); | Geometry *geom = object->get_geometry(); | ||||
| if (geometry_motion_synced.find(geom) != geometry_motion_synced.end()) | if (geometry_motion_synced.find(geom) != geometry_motion_synced.end() || | ||||
| geometry_motion_attribute_synced.find(geom) != geometry_motion_attribute_synced.end()) { | |||||
| return; | return; | ||||
| } | |||||
| geometry_motion_synced.insert(geom); | geometry_motion_synced.insert(geom); | ||||
| /* Ensure we only motion sync geometry that also had geometry synced, to avoid | /* Ensure we only motion sync geometry that also had geometry synced, to avoid | ||||
| * unnecessary work and to ensure that its attributes were clear. */ | * unnecessary work and to ensure that its attributes were clear. */ | ||||
| if (geometry_synced.find(geom) == geometry_synced.end()) | if (geometry_synced.find(geom) == geometry_synced.end()) | ||||
| return; | return; | ||||
| Show All 34 Lines | |||||