Commit from campbell of march 5 crashes when no object was active and you

do a move to layer...
This commit is contained in:
Ton Roosendaal 2006-03-09 22:05:53 +00:00
parent 72d92b6b1a
commit bbfc41b246

@ -1888,7 +1888,7 @@ void movetolayer(void)
if(islamp && G.vd->drawtype == OB_SHADED) reshadeall_displist();
/* to avoid operations on active objects in hidden layers */
if (!(BASACT->lay & G.vd->lay))
if (BASACT && !(BASACT->lay & G.vd->lay))
BASACT= NULL;
countall();