Cycles: remove deprecated strict aliasing flag for opencl, fix missing update
[blender-staging.git] / source / blender / makesrna / intern / rna_object.c
index a27b6b2d72c462fcffec19aec1242517c893fcd3..790c24ba2d7b28edff97bfdaad9fe7562375bf8a 100644 (file)
@@ -284,6 +284,8 @@ static void rna_Object_layer_update__internal(Main *bmain, Scene *scene, Base *b
        else {
                DAG_scene_sort(bmain, scene);
        }
+
+       DAG_id_type_tag(bmain, ID_OB);
 }
 
 static void rna_Object_layer_update(Main *bmain, Scene *scene, PointerRNA *ptr)