diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-20 17:33:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-20 17:33:00 +0400 |
commit | c8d0d9b383a53aadc704c1619418dea8031c9abf (patch) | |
tree | 43cadb884c0b5a42e3341487fe033d84ee1312ba /source/blender/editors/util/ed_util.c | |
parent | fbf821c50b25b49620a7d7af35321851a547010a (diff) |
Code Cleanup: tabs/spaces, no need to call CTX_data_edit_object twice
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r-- | source/blender/editors/util/ed_util.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index 44ef8e2093e..6e41fb993e4 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -145,16 +145,16 @@ void ED_editors_exit(bContext *C) * rendering, copying, etc. */ void ED_editors_flush_edits(const bContext *C, bool for_render) { - Object *obact = CTX_data_active_object(C); - Object *obedit = CTX_data_edit_object(C); + Object *obact = CTX_data_active_object(C); + Object *obedit = CTX_data_edit_object(C); - /* get editmode results */ + /* get editmode results */ if (obedit) - ED_object_editmode_load(CTX_data_edit_object(C)); + ED_object_editmode_load(obedit); - if (obact && (obact->mode & OB_MODE_SCULPT)) { - /* flush multires changes (for sculpt) */ - multires_force_update(obact); + if (obact && (obact->mode & OB_MODE_SCULPT)) { + /* flush multires changes (for sculpt) */ + multires_force_update(obact); if (for_render) { /* flush changes from dynamic topology sculpt */ @@ -165,7 +165,7 @@ void ED_editors_flush_edits(const bContext *C, bool for_render) * the BMesh's elements */ sculptsession_bm_to_me(obact, FALSE); } - } + } } /* ***** XXX: functions are using old blender names, cleanup later ***** */ |