Another merger of Orange branch with bf-blender, it has important fixes.
[blender.git] / source / blender / src / header_view3d.c
index fbea7637dd1d22dd909003cf9f9cfacec9cf571d..97e10fc1585703ea54f49e241ccde5c23565839e 100644 (file)
@@ -157,6 +157,9 @@ void do_layer_buttons(short event)
                
                if(G.vd->scenelock) handle_view3d_lock();
                scrarea_queue_winredraw(curarea);
+               
+               /* new layers might need unflushed events events */
+               DAG_scene_update_flags(G.scene, G.vd->lay);     // tags all that moves and flushes
        }
        else {
                if(G.qual & LR_ALTKEY) {