Cycles: internal changes that should have no effect on user level yet, added
shader flags for various purposes, and some code for light types other than points.
This commit is contained in:
@@ -88,9 +88,12 @@ void Object::tag_update(Scene *scene)
|
||||
if(mesh->transform_applied)
|
||||
mesh->need_update = true;
|
||||
|
||||
foreach(uint sindex, mesh->used_shaders)
|
||||
if(scene->shaders[sindex]->has_surface_emission)
|
||||
foreach(uint sindex, mesh->used_shaders) {
|
||||
Shader *shader = scene->shaders[sindex];
|
||||
|
||||
if(shader->sample_as_light && shader->has_surface_emission)
|
||||
scene->light_manager->need_update = true;
|
||||
}
|
||||
}
|
||||
|
||||
scene->mesh_manager->need_update = true;
|
||||
|
Reference in New Issue
Block a user