diff options
author | Ton Roosendaal <ton@blender.org> | 2006-03-10 01:05:53 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-03-10 01:05:53 +0300 |
commit | bbfc41b246724372c5a949c03f97033cde89df64 (patch) | |
tree | 41817bf732c8926b49641311b3b8f5234ef410f4 /source | |
parent | 72d92b6b1a8bfee2edbf4c31c436a0ddb04c4c0a (diff) |
Commit from campbell of march 5 crashes when no object was active and you
do a move to layer...
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/editobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 4a49766222b..b63778f9378 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -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(); |