diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-30 22:12:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-30 22:12:17 +0300 |
commit | 435f0ee1535e57824b6acaea2dabc7521b3c2efb (patch) | |
tree | 7660c32e6b95d19bac46ebf878df3ae14f30e25e | |
parent | a1b8bc93e2890303eb5f9459681830091227a8bc (diff) |
missing NULL check in own recent commit,
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 2f9028d819c..bcfddd0792c 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -307,7 +307,7 @@ int ED_operator_posemode(bContext *C) { Object *obact= CTX_data_active_object(C); - if (!(obact->mode & OB_MODE_EDIT)) { + if (obact && !(obact->mode & OB_MODE_EDIT)) { Object *obpose; if((obpose= ED_object_pose_armature(obact))) { if((obact == obpose) || (obact->mode & OB_MODE_WEIGHT_PAINT)) { |