Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/scene/object.cpp
| Show First 20 Lines • Show All 225 Lines • ▼ Show 20 Lines | if (geometry) { | ||||
| } | } | ||||
| if (visibility_is_modified()) { | if (visibility_is_modified()) { | ||||
| flag |= ObjectManager::VISIBILITY_MODIFIED; | flag |= ObjectManager::VISIBILITY_MODIFIED; | ||||
| } | } | ||||
| foreach (Node *node, geometry->get_used_shaders()) { | foreach (Node *node, geometry->get_used_shaders()) { | ||||
| Shader *shader = static_cast<Shader *>(node); | Shader *shader = static_cast<Shader *>(node); | ||||
| if (shader->get_use_mis() && shader->has_surface_emission) | if (shader->emission_sampling != EMISSION_SAMPLING_NONE) | ||||
| scene->light_manager->tag_update(scene, LightManager::EMISSIVE_MESH_MODIFIED); | scene->light_manager->tag_update(scene, LightManager::EMISSIVE_MESH_MODIFIED); | ||||
| } | } | ||||
| } | } | ||||
| scene->camera->need_flags_update = true; | scene->camera->need_flags_update = true; | ||||
| scene->object_manager->tag_update(scene, flag); | scene->object_manager->tag_update(scene, flag); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 809 Lines • Show Last 20 Lines | |||||