Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-10-13 04:32:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-13 04:32:31 +0400
commiteabf7ab3351ade8415cd38d6faf2cfba79ba7400 (patch)
treede69cec6b43dcbf8bf08529f09c8bba90c508deb /source/blender/editors/mesh/editmesh_knife.c
parent3a63adb5ff7e52084d279d64a0afc0f8067c0499 (diff)
code cleanup: utility function for getting a bool as a string.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_knife.c')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c8
1 files changed, 4 insertions, 4 deletions
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);
}