diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-03 10:00:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-03 10:00:20 +0300 |
commit | be2e549111b8dd47a9e468fe34dd1396f99b1cb1 (patch) | |
tree | e1c9303db1e7068ae44f68304740f3d2386cab1a /source/blender/editors/sculpt_paint/sculpt.c | |
parent | f32dfd0819fe871a3ec2efdac573c060537e7150 (diff) |
Use scene active object for sculptmode enter/exit calls
Match logic in previous commit.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 309a7aa2102..afee44c3dcc 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5728,7 +5728,7 @@ void ED_object_sculptmode_enter(struct bContext *C, ReportList *reports) { Main *bmain = CTX_data_main(C); Scene *scene = CTX_data_scene(C); - Object *ob = CTX_data_active_object(C); + Object *ob = OBACT; ED_object_sculptmode_enter_ex(bmain, scene, ob, reports); } @@ -5781,7 +5781,7 @@ void ED_object_sculptmode_exit_ex( void ED_object_sculptmode_exit(bContext *C) { Scene *scene = CTX_data_scene(C); - Object *ob = CTX_data_active_object(C); + Object *ob = OBACT; ED_object_sculptmode_exit_ex(scene, ob); } |