diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-03 09:42:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-03 09:42:26 +0300 |
commit | f32dfd0819fe871a3ec2efdac573c060537e7150 (patch) | |
tree | 480219662dea55ceda55bddc315183a387659f15 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | 335e1b507b1ad0e7c2bafb2175dac15d3d1add83 (diff) |
Fix T56331: Undo crash w/ sculpt on hidden layer
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 80e9aef4a40..309a7aa2102 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5789,7 +5789,7 @@ static int sculpt_mode_toggle_exec(bContext *C, wmOperator *op) { Main *bmain = CTX_data_main(C); Scene *scene = CTX_data_scene(C); - Object *ob = CTX_data_active_object(C); + Object *ob = OBACT; const int mode_flag = OB_MODE_SCULPT; const bool is_mode_set = (ob->mode & mode_flag) != 0; |