Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_sync.cpp
| Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | else if (b_id.is_a(&RNA_Light)) { | ||||
| BL::Light b_light(b_id); | BL::Light b_light(b_id); | ||||
| shader_map.set_recalc(b_light); | shader_map.set_recalc(b_light); | ||||
| } | } | ||||
| /* Object */ | /* Object */ | ||||
| else if (b_id.is_a(&RNA_Object)) { | else if (b_id.is_a(&RNA_Object)) { | ||||
| BL::Object b_ob(b_id); | BL::Object b_ob(b_id); | ||||
| const bool updated_geometry = b_update->is_updated_geometry(); | const bool updated_geometry = b_update->is_updated_geometry(); | ||||
| if (b_update->is_updated_transform()) { | if (b_update->is_updated_transform() || b_update->is_updated_shading()) { | ||||
| object_map.set_recalc(b_ob); | object_map.set_recalc(b_ob); | ||||
| light_map.set_recalc(b_ob); | light_map.set_recalc(b_ob); | ||||
| } | } | ||||
| if (object_is_mesh(b_ob)) { | if (object_is_mesh(b_ob)) { | ||||
| if (updated_geometry || | if (updated_geometry || | ||||
| (object_subdivision_type(b_ob, preview, experimental) != Mesh::SUBDIVISION_NONE)) { | (object_subdivision_type(b_ob, preview, experimental) != Mesh::SUBDIVISION_NONE)) { | ||||
| BL::ID key = BKE_object_is_modified(b_ob) ? b_ob : b_ob.data(); | BL::ID key = BKE_object_is_modified(b_ob) ? b_ob : b_ob.data(); | ||||
| ▲ Show 20 Lines • Show All 769 Lines • Show Last 20 Lines | |||||