Fix T46842: Removing World is missing AO update in viewport render

This commit is contained in:
Sergey Sharybin 2015-11-23 17:24:49 +05:00
parent 940f7a6d53
commit f021d97e8f

@ -1167,6 +1167,10 @@ void BlenderSync::sync_world(bool update_all)
background->visibility = visibility;
}
else {
background->ao_factor = 0.0f;
background->ao_distance = FLT_MAX;
}
shader->set_graph(graph);
shader->tag_update(scene);