Slight change, when moving the active object out of localview, keep it the activew object. Face Select mode, vpain etc need to complain if act ob isnt visible before the modes are activated.

This commit is contained in:
Campbell Barton 2006-03-18 15:53:06 +00:00
parent bfe42eea43
commit dc90a417cb

@ -1887,9 +1887,7 @@ void movetolayer(void)
}
if(islamp && G.vd->drawtype == OB_SHADED) reshadeall_displist();
/* to avoid operations on active objects in hidden layers */
if (BASACT && !(BASACT->lay & G.vd->lay))
BASACT= NULL;
/* warning, active object may be hidden now */
countall();
DAG_scene_sort(G.scene);