forked from bartvdbraak/blender
Commit from campbell of march 5 crashes when no object was active and you
do a move to layer...
This commit is contained in:
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();
|
||||
|
Loading…
Reference in New Issue
Block a user