Cycles: fix missing update when removing or hiding objects.

This commit is contained in:
2011-08-11 16:48:13 +00:00
parent 6686f18948
commit b4343da77f
6 changed files with 22 additions and 1 deletions

View File

@@ -60,6 +60,9 @@ BlenderSync::~BlenderSync()
bool BlenderSync::sync_recalc()
{
/* sync recalc flags from blender to cycles. actual update is done separate,
so we can do it later on if doing it immediate is not suitable */
BL::BlendData::materials_iterator b_mat;
for(b_mat = b_data.materials.begin(); b_mat != b_data.materials.end(); ++b_mat)
@@ -104,6 +107,7 @@ bool BlenderSync::sync_recalc()
object_map.has_recalc() ||
light_map.has_recalc() ||
mesh_map.has_recalc() ||
BlendDataObjects_recalc_get(&b_data.ptr) ||
world_recalc;
return recalc;