diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-13 04:32:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-13 04:32:31 +0400 |
commit | eabf7ab3351ade8415cd38d6faf2cfba79ba7400 (patch) | |
tree | de69cec6b43dcbf8bf08529f09c8bba90c508deb /source/blender/editors/mesh | |
parent | 3a63adb5ff7e52084d279d64a0afc0f8067c0499 (diff) |
code cleanup: utility function for getting a bool as a string.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_inset.c | 8 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/mesh/editmesh_inset.c b/source/blender/editors/mesh/editmesh_inset.c index 71822868026..eb66cf50a1e 100644 --- a/source/blender/editors/mesh/editmesh_inset.c +++ b/source/blender/editors/mesh/editmesh_inset.c @@ -96,10 +96,10 @@ static void edbm_inset_update_header(wmOperator *op, bContext *C) BLI_snprintf(msg, HEADER_LENGTH, str, flts_str, flts_str + NUM_STR_REP_LEN, - opdata->modify_depth ? IFACE_("On") : IFACE_("Off"), - RNA_boolean_get(op->ptr, "use_outset") ? IFACE_("On") : IFACE_("Off"), - RNA_boolean_get(op->ptr, "use_boundary") ? IFACE_("On") : IFACE_("Off"), - RNA_boolean_get(op->ptr, "use_individual") ? IFACE_("On") : IFACE_("Off") + WM_bool_as_string(opdata->modify_depth), + WM_bool_as_string(RNA_boolean_get(op->ptr, "use_outset")), + WM_bool_as_string(RNA_boolean_get(op->ptr, "use_boundary")), + WM_bool_as_string(RNA_boolean_get(op->ptr, "use_individual")) ); ED_area_headerprint(sa, msg); diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index 9d8b283fe1a..b0dc30d73f7 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -230,10 +230,10 @@ static void knife_update_header(bContext *C, KnifeTool_OpData *kcd) BLI_snprintf(header, HEADER_LENGTH, IFACE_("LMB: define cut lines, Return/Spacebar: confirm, Esc or RMB: cancel, " "E: new cut, Ctrl: midpoint snap (%s), Shift: ignore snap (%s), " "C: angle constrain (%s), Z: cut through (%s)"), - kcd->snap_midpoints ? IFACE_("On") : IFACE_("Off"), - kcd->ignore_edge_snapping ? IFACE_("On") : IFACE_("Off"), - kcd->angle_snapping ? IFACE_("On") : IFACE_("Off"), - kcd->cut_through ? IFACE_("On") : IFACE_("Off")); + WM_bool_as_string(kcd->snap_midpoints), + WM_bool_as_string(kcd->ignore_edge_snapping), + WM_bool_as_string(kcd->angle_snapping), + WM_bool_as_string(kcd->cut_through)); ED_area_headerprint(CTX_wm_area(C), header); } |