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>2014-04-01 04:34:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-01 08:22:28 +0400
commit617557b08ea94e2b65a1697ddf0b79651204d92b (patch)
tree50b24bab075b42fa20456140c9a9681cfb01325b /source/blender/editors/space_clip
parent2c00ecc738c04dc5dc22d4a6b81a1e937526ba6d (diff)
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r--source/blender/editors/space_clip/clip_buttons.c16
-rw-r--r--source/blender/editors/space_clip/clip_dopesheet_ops.c4
-rw-r--r--source/blender/editors/space_clip/clip_editor.c14
-rw-r--r--source/blender/editors/space_clip/clip_graph_ops.c6
-rw-r--r--source/blender/editors/space_clip/clip_ops.c4
-rw-r--r--source/blender/editors/space_clip/clip_toolbar.c2
-rw-r--r--source/blender/editors/space_clip/clip_utils.c2
-rw-r--r--source/blender/editors/space_clip/space_clip.c66
-rw-r--r--source/blender/editors/space_clip/tracking_ops.c12
-rw-r--r--source/blender/editors/space_clip/tracking_select.c4
10 files changed, 65 insertions, 65 deletions
diff --git a/source/blender/editors/space_clip/clip_buttons.c b/source/blender/editors/space_clip/clip_buttons.c
index 50bb8a0e061..6c228d52a96 100644
--- a/source/blender/editors/space_clip/clip_buttons.c
+++ b/source/blender/editors/space_clip/clip_buttons.c
@@ -130,18 +130,18 @@ void uiTemplateMovieClip(uiLayout *layout, bContext *C, PointerRNA *ptr, const c
if (clip) {
uiLayout *col;
- row = uiLayoutRow(layout, FALSE);
+ row = uiLayoutRow(layout, false);
block = uiLayoutGetBlock(row);
uiDefBut(block, LABEL, 0, IFACE_("File Path:"), 0, 19, 145, 19, NULL, 0, 0, 0, 0, "");
- row = uiLayoutRow(layout, FALSE);
- split = uiLayoutSplit(row, 0.0f, FALSE);
- row = uiLayoutRow(split, TRUE);
+ row = uiLayoutRow(layout, false);
+ split = uiLayoutSplit(row, 0.0f, false);
+ row = uiLayoutRow(split, true);
uiItemR(row, &clipptr, "filepath", 0, "", ICON_NONE);
uiItemO(row, "", ICON_FILE_REFRESH, "clip.reload");
- col = uiLayoutColumn(layout, FALSE);
+ col = uiLayoutColumn(layout, false);
uiTemplateColorspaceSettings(col, &clipptr, "colorspace_settings");
}
}
@@ -412,7 +412,7 @@ void uiTemplateMarker(uiLayout *layout, PointerRNA *ptr, const char *propname, P
BKE_movieclip_get_size(clip, user, &width, &height);
if (track->flag & TRACK_LOCKED) {
- uiLayoutSetActive(layout, FALSE);
+ uiLayoutSetActive(layout, false);
block = uiLayoutAbsoluteBlock(layout);
uiDefBut(block, LABEL, 0, IFACE_("Track is locked"), 0, 0, UI_UNIT_X * 15.0f, UI_UNIT_Y, NULL, 0, 0, 0, 0, "");
@@ -450,7 +450,7 @@ void uiTemplateMarker(uiLayout *layout, PointerRNA *ptr, const char *propname, P
uiDefButBitI(block, OPTIONN, MARKER_DISABLED, B_MARKER_FLAG, IFACE_("Enabled"), 0.5 * UI_UNIT_X, 9.5 * UI_UNIT_Y, 7.25 * UI_UNIT_X, UI_UNIT_Y,
&cb->marker_flag, 0, 0, 0, 0, tip);
- col = uiLayoutColumn(layout, TRUE);
+ col = uiLayoutColumn(layout, true);
uiLayoutSetActive(col, (cb->marker_flag & MARKER_DISABLED) == 0);
block = uiLayoutAbsoluteBlock(col);
@@ -523,7 +523,7 @@ void uiTemplateMovieclipInformation(uiLayout *layout, PointerRNA *ptr, const cha
clip = (MovieClip *)clipptr.data;
user = userptr->data;
- col = uiLayoutColumn(layout, FALSE);
+ col = uiLayoutColumn(layout, false);
ibuf = BKE_movieclip_get_ibuf_flag(clip, user, clip->flag, MOVIECLIP_CACHE_SKIP);
diff --git a/source/blender/editors/space_clip/clip_dopesheet_ops.c b/source/blender/editors/space_clip/clip_dopesheet_ops.c
index 8cd096a2438..58ae0d14e4d 100644
--- a/source/blender/editors/space_clip/clip_dopesheet_ops.c
+++ b/source/blender/editors/space_clip/clip_dopesheet_ops.c
@@ -71,7 +71,7 @@ static int space_clip_dopesheet_poll(bContext *C)
}
}
- return FALSE;
+ return false;
}
/********************** select channel operator *********************/
@@ -83,7 +83,7 @@ static int dopesheet_select_channel_poll(bContext *C)
if (sc && sc->clip)
return sc->view == SC_VIEW_DOPESHEET;
- return FALSE;
+ return false;
}
static int dopesheet_select_channel_exec(bContext *C, wmOperator *op)
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c
index 42b4051d7ff..f3938c2aebe 100644
--- a/source/blender/editors/space_clip/clip_editor.c
+++ b/source/blender/editors/space_clip/clip_editor.c
@@ -83,9 +83,9 @@ int ED_space_clip_poll(bContext *C)
SpaceClip *sc = CTX_wm_space_clip(C);
if (sc && sc->clip)
- return TRUE;
+ return true;
- return FALSE;
+ return false;
}
int ED_space_clip_view_clip_poll(bContext *C)
@@ -96,7 +96,7 @@ int ED_space_clip_view_clip_poll(bContext *C)
return sc->view == SC_VIEW_CLIP;
}
- return FALSE;
+ return false;
}
int ED_space_clip_tracking_poll(bContext *C)
@@ -106,7 +106,7 @@ int ED_space_clip_tracking_poll(bContext *C)
if (sc && sc->clip)
return ED_space_clip_check_show_trackedit(sc);
- return FALSE;
+ return false;
}
int ED_space_clip_maskedit_poll(bContext *C)
@@ -117,7 +117,7 @@ int ED_space_clip_maskedit_poll(bContext *C)
return ED_space_clip_check_show_maskedit(sc);
}
- return FALSE;
+ return false;
}
int ED_space_clip_maskedit_mask_poll(bContext *C)
@@ -132,7 +132,7 @@ int ED_space_clip_maskedit_mask_poll(bContext *C)
}
}
- return FALSE;
+ return false;
}
/* ******** common editing functions ******** */
@@ -316,7 +316,7 @@ void ED_clip_update_frame(const Main *mainp, int cfra)
if (sa->spacetype == SPACE_CLIP) {
SpaceClip *sc = sa->spacedata.first;
- sc->scopes.ok = FALSE;
+ sc->scopes.ok = false;
BKE_movieclip_user_set_frame(&sc->user, cfra);
}
diff --git a/source/blender/editors/space_clip/clip_graph_ops.c b/source/blender/editors/space_clip/clip_graph_ops.c
index b0de9dda6cd..2aaf064ef53 100644
--- a/source/blender/editors/space_clip/clip_graph_ops.c
+++ b/source/blender/editors/space_clip/clip_graph_ops.c
@@ -69,7 +69,7 @@ static int ED_space_clip_graph_poll(bContext *C)
return sc->view == SC_VIEW_GRAPH;
}
- return FALSE;
+ return false;
}
static int clip_graph_knots_poll(bContext *C)
@@ -79,7 +79,7 @@ static int clip_graph_knots_poll(bContext *C)
return (sc->flag & SC_SHOW_GRAPH_TRACKS_MOTION) != 0;
}
- return FALSE;
+ return false;
}
typedef struct {
@@ -410,7 +410,7 @@ void CLIP_OT_graph_select_border(wmOperatorType *ot)
ot->flag = OPTYPE_UNDO;
/* properties */
- WM_operator_properties_gesture_border(ot, TRUE);
+ WM_operator_properties_gesture_border(ot, true);
}
/********************** select all operator *********************/
diff --git a/source/blender/editors/space_clip/clip_ops.c b/source/blender/editors/space_clip/clip_ops.c
index d9a2ccbe70e..2b425e23183 100644
--- a/source/blender/editors/space_clip/clip_ops.c
+++ b/source/blender/editors/space_clip/clip_ops.c
@@ -1030,7 +1030,7 @@ static void do_movie_proxy(void *pjv, int *UNUSED(build_sizes), int UNUSED(build
if (*stop || G.is_break)
break;
- *do_update = TRUE;
+ *do_update = true;
*progress = ((float) cfra - sfra) / (efra - sfra);
}
@@ -1523,5 +1523,5 @@ void ED_operatormacros_clip(void)
OPTYPE_UNDO | OPTYPE_REGISTER);
WM_operatortype_macro_define(ot, "CLIP_OT_add_marker");
otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
- RNA_boolean_set(otmacro->ptr, "release_confirm", TRUE);
+ RNA_boolean_set(otmacro->ptr, "release_confirm", true);
}
diff --git a/source/blender/editors/space_clip/clip_toolbar.c b/source/blender/editors/space_clip/clip_toolbar.c
index 42300f88a4f..55b78219770 100644
--- a/source/blender/editors/space_clip/clip_toolbar.c
+++ b/source/blender/editors/space_clip/clip_toolbar.c
@@ -239,7 +239,7 @@ static void clip_panel_operator_redo(const bContext *C, Panel *pa)
uiBlock *block = uiLayoutGetBlock(pa->layout);
if (!WM_operator_check_ui_enabled(C, op->type->name))
- uiLayoutSetEnabled(pa->layout, FALSE);
+ uiLayoutSetEnabled(pa->layout, false);
/* note, blockfunc is a default but->func, use Handle func to allow button callbacks too */
uiBlockSetHandleFunc(block, ED_undo_operator_repeat_cb_evt, op);
diff --git a/source/blender/editors/space_clip/clip_utils.c b/source/blender/editors/space_clip/clip_utils.c
index bedd576a65e..fd994d5e1b3 100644
--- a/source/blender/editors/space_clip/clip_utils.c
+++ b/source/blender/editors/space_clip/clip_utils.c
@@ -256,7 +256,7 @@ void clip_delete_track(bContext *C, MovieClip *clip, MovieTrackingTrack *track)
WM_event_add_notifier(C, NC_MOVIECLIP | NA_EDITED, clip);
if (update_stab) {
- tracking->stabilization.ok = FALSE;
+ tracking->stabilization.ok = false;
WM_event_add_notifier(C, NC_MOVIECLIP | ND_DISPLAY, clip);
}
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index 0ee05cac0b9..ad425d21612 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -213,7 +213,7 @@ static void clip_scopes_tag_refresh(ScrArea *sa)
return;
}
- sc->scopes.ok = FALSE;
+ sc->scopes.ok = false;
}
static void clip_scopes_check_gpencil_change(ScrArea *sa)
@@ -233,7 +233,7 @@ static void clip_stabilization_tag_refresh(ScrArea *sa)
if (clip) {
MovieTrackingStabilization *stab = &clip->tracking.stabilization;
- stab->ok = FALSE;
+ stab->ok = false;
}
}
@@ -336,7 +336,7 @@ static SpaceLink *clip_duplicate(SpaceLink *sl)
/* clear or remove stuff from old */
scn->scopes.track_search = NULL;
scn->scopes.track_preview = NULL;
- scn->scopes.ok = FALSE;
+ scn->scopes.ok = false;
return (SpaceLink *)scn;
}
@@ -564,17 +564,17 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
/* 2d tracking */
kmi = WM_keymap_add_item(keymap, "CLIP_OT_track_markers", LEFTARROWKEY, KM_PRESS, KM_ALT, 0);
- RNA_boolean_set(kmi->ptr, "backwards", TRUE);
- RNA_boolean_set(kmi->ptr, "sequence", FALSE);
+ RNA_boolean_set(kmi->ptr, "backwards", true);
+ RNA_boolean_set(kmi->ptr, "sequence", false);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_track_markers", RIGHTARROWKEY, KM_PRESS, KM_ALT, 0);
- RNA_boolean_set(kmi->ptr, "backwards", FALSE);
- RNA_boolean_set(kmi->ptr, "sequence", FALSE);
+ RNA_boolean_set(kmi->ptr, "backwards", false);
+ RNA_boolean_set(kmi->ptr, "sequence", false);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_track_markers", TKEY, KM_PRESS, KM_CTRL, 0);
- RNA_boolean_set(kmi->ptr, "backwards", FALSE);
- RNA_boolean_set(kmi->ptr, "sequence", TRUE);
+ RNA_boolean_set(kmi->ptr, "backwards", false);
+ RNA_boolean_set(kmi->ptr, "sequence", true);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_track_markers", TKEY, KM_PRESS, KM_SHIFT | KM_CTRL, 0);
- RNA_boolean_set(kmi->ptr, "backwards", TRUE);
- RNA_boolean_set(kmi->ptr, "sequence", TRUE);
+ RNA_boolean_set(kmi->ptr, "backwards", true);
+ RNA_boolean_set(kmi->ptr, "sequence", true);
/* mode */
kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle_enum", TABKEY, KM_PRESS, 0, 0);
@@ -627,7 +627,7 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
WM_keymap_add_item(keymap, "CLIP_OT_view_all", HOMEKEY, KM_PRESS, 0, 0);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_view_all", FKEY, KM_PRESS, 0, 0);
- RNA_boolean_set(kmi->ptr, "fit_view", TRUE);
+ RNA_boolean_set(kmi->ptr, "fit_view", true);
WM_keymap_add_item(keymap, "CLIP_OT_view_selected", PADPERIOD, KM_PRESS, 0, 0);
@@ -652,9 +652,9 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
/* selection */
kmi = WM_keymap_add_item(keymap, "CLIP_OT_select", SELECTMOUSE, KM_PRESS, 0, 0);
- RNA_boolean_set(kmi->ptr, "extend", FALSE);
+ RNA_boolean_set(kmi->ptr, "extend", false);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT, 0);
- RNA_boolean_set(kmi->ptr, "extend", TRUE);
+ RNA_boolean_set(kmi->ptr, "extend", true);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_select_all", AKEY, KM_PRESS, 0, 0);
RNA_enum_set(kmi->ptr, "action", SEL_TOGGLE);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_select_all", IKEY, KM_PRESS, KM_CTRL, 0);
@@ -664,9 +664,9 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
WM_keymap_add_menu(keymap, "CLIP_MT_select_grouped", GKEY, KM_PRESS, KM_SHIFT, 0);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_select_lasso", EVT_TWEAK_A, KM_ANY, KM_CTRL | KM_ALT, 0);
- RNA_boolean_set(kmi->ptr, "deselect", FALSE);
+ RNA_boolean_set(kmi->ptr, "deselect", false);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_select_lasso", EVT_TWEAK_A, KM_ANY, KM_CTRL | KM_SHIFT | KM_ALT, 0);
- RNA_boolean_set(kmi->ptr, "deselect", TRUE);
+ RNA_boolean_set(kmi->ptr, "deselect", true);
/* marker */
WM_keymap_add_item(keymap, "CLIP_OT_add_marker_slide", LEFTMOUSE, KM_PRESS, KM_CTRL, 0);
@@ -690,10 +690,10 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
RNA_enum_set(kmi->ptr, "action", 1); /* unlock */
kmi = WM_keymap_add_item(keymap, "CLIP_OT_hide_tracks", HKEY, KM_PRESS, 0, 0);
- RNA_boolean_set(kmi->ptr, "unselected", FALSE);
+ RNA_boolean_set(kmi->ptr, "unselected", false);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_hide_tracks", HKEY, KM_PRESS, KM_SHIFT, 0);
- RNA_boolean_set(kmi->ptr, "unselected", TRUE);
+ RNA_boolean_set(kmi->ptr, "unselected", true);
WM_keymap_add_item(keymap, "CLIP_OT_hide_tracks_clear", HKEY, KM_PRESS, KM_ALT, 0);
@@ -727,13 +727,13 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
/* clean-up */
kmi = WM_keymap_add_item(keymap, "CLIP_OT_clear_track_path", TKEY, KM_PRESS, KM_ALT, 0);
RNA_enum_set(kmi->ptr, "action", TRACK_CLEAR_REMAINED);
- RNA_boolean_set(kmi->ptr, "clear_active", FALSE);
+ RNA_boolean_set(kmi->ptr, "clear_active", false);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_clear_track_path", TKEY, KM_PRESS, KM_SHIFT, 0);
RNA_enum_set(kmi->ptr, "action", TRACK_CLEAR_UPTO);
- RNA_boolean_set(kmi->ptr, "clear_active", FALSE);
+ RNA_boolean_set(kmi->ptr, "clear_active", false);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_clear_track_path", TKEY, KM_PRESS, KM_ALT | KM_SHIFT, 0);
RNA_enum_set(kmi->ptr, "action", TRACK_CLEAR_ALL);
- RNA_boolean_set(kmi->ptr, "clear_active", FALSE);
+ RNA_boolean_set(kmi->ptr, "clear_active", false);
/* Cursor */
WM_keymap_add_item(keymap, "CLIP_OT_cursor_set", ACTIONMOUSE, KM_PRESS, 0, 0);
@@ -764,9 +764,9 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
/* selection */
kmi = WM_keymap_add_item(keymap, "CLIP_OT_graph_select", SELECTMOUSE, KM_PRESS, 0, 0);
- RNA_boolean_set(kmi->ptr, "extend", FALSE);
+ RNA_boolean_set(kmi->ptr, "extend", false);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_graph_select", SELECTMOUSE, KM_PRESS, KM_SHIFT, 0);
- RNA_boolean_set(kmi->ptr, "extend", TRUE);
+ RNA_boolean_set(kmi->ptr, "extend", true);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_graph_select_all_markers", AKEY, KM_PRESS, 0, 0);
RNA_enum_set(kmi->ptr, "action", SEL_TOGGLE);
@@ -793,13 +793,13 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
/* clean-up */
kmi = WM_keymap_add_item(keymap, "CLIP_OT_clear_track_path", TKEY, KM_PRESS, KM_ALT, 0);
RNA_enum_set(kmi->ptr, "action", TRACK_CLEAR_REMAINED);
- RNA_boolean_set(kmi->ptr, "clear_active", TRUE);
+ RNA_boolean_set(kmi->ptr, "clear_active", true);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_clear_track_path", TKEY, KM_PRESS, KM_SHIFT, 0);
RNA_enum_set(kmi->ptr, "action", TRACK_CLEAR_UPTO);
- RNA_boolean_set(kmi->ptr, "clear_active", TRUE);
+ RNA_boolean_set(kmi->ptr, "clear_active", true);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_clear_track_path", TKEY, KM_PRESS, KM_ALT | KM_SHIFT, 0);
RNA_enum_set(kmi->ptr, "action", TRACK_CLEAR_ALL);
- RNA_boolean_set(kmi->ptr, "clear_active", TRUE);
+ RNA_boolean_set(kmi->ptr, "clear_active", true);
/* tracks */
kmi = WM_keymap_add_item(keymap, "CLIP_OT_graph_disable_markers", DKEY, KM_PRESS, KM_SHIFT, 0);
@@ -812,7 +812,7 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
keymap = WM_keymap_find(keyconf, "Clip Dopesheet Editor", SPACE_CLIP, 0);
kmi = WM_keymap_add_item(keymap, "CLIP_OT_dopesheet_select_channel", ACTIONMOUSE, KM_PRESS, 0, 0);
- RNA_boolean_set(kmi->ptr, "extend", TRUE); /* toggle */
+ RNA_boolean_set(kmi->ptr, "extend", true); /* toggle */
WM_keymap_add_item(keymap, "CLIP_OT_dopesheet_view_all", HOMEKEY, KM_PRESS, 0, 0);
WM_keymap_add_item(keymap, "CLIP_OT_dopesheet_view_all", NDOF_BUTTON_FIT, KM_PRESS, 0, 0);
@@ -827,20 +827,20 @@ static int clip_context(const bContext *C, const char *member, bContextDataResul
if (CTX_data_dir(member)) {
CTX_data_dir_set(result, clip_context_dir);
- return TRUE;
+ return true;
}
else if (CTX_data_equals(member, "edit_movieclip")) {
if (sc->clip)
CTX_data_id_pointer_set(result, &sc->clip->id);
- return TRUE;
+ return true;
}
else if (CTX_data_equals(member, "edit_mask")) {
if (sc->mask_info.mask)
CTX_data_id_pointer_set(result, &sc->mask_info.mask->id);
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
/* dropboxes */
@@ -848,9 +848,9 @@ static int clip_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUS
{
if (drag->type == WM_DRAG_PATH)
if (ELEM4(drag->icon, 0, ICON_FILE_IMAGE, ICON_FILE_MOVIE, ICON_FILE_BLANK)) /* rule might not work? */
- return TRUE;
+ return true;
- return FALSE;
+ return false;
}
static void clip_drop_copy(wmDrag *drag, wmDropBox *drop)
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c
index 22878d3a0cd..c59b6b8c8a1 100644
--- a/source/blender/editors/space_clip/tracking_ops.c
+++ b/source/blender/editors/space_clip/tracking_ops.c
@@ -1280,7 +1280,7 @@ static void track_markers_startjob(void *tmv, short *stop, short *do_update, flo
else if (!BKE_tracking_context_step(tmj->context))
break;
- *do_update = TRUE;
+ *do_update = true;
*progress = (float)(framenr - tmj->sfra) / (tmj->efra - tmj->sfra);
if (tmj->backwards)
@@ -2011,7 +2011,7 @@ static int set_orientation_poll(bContext *C)
MovieTrackingObject *tracking_object = BKE_tracking_object_get_active(tracking);
if (tracking_object->flag & TRACKING_OBJECT_CAMERA) {
- return TRUE;
+ return true;
}
else {
return OBACT != NULL;
@@ -2019,7 +2019,7 @@ static int set_orientation_poll(bContext *C)
}
}
- return FALSE;
+ return false;
}
static int count_selected_bundles(bContext *C)
@@ -2650,7 +2650,7 @@ static int set_solution_scale_poll(bContext *C)
}
}
- return FALSE;
+ return false;
}
static int set_solution_scale_exec(bContext *C, wmOperator *op)
@@ -2706,7 +2706,7 @@ static int apply_solution_scale_poll(bContext *C)
}
}
- return FALSE;
+ return false;
}
static int apply_solution_scale_exec(bContext *C, wmOperator *op)
@@ -3306,7 +3306,7 @@ static int stabilize_2d_poll(bContext *C)
return tracking_object->flag & TRACKING_OBJECT_CAMERA;
}
- return FALSE;
+ return false;
}
static int stabilize_2d_add_exec(bContext *C, wmOperator *UNUSED(op))
diff --git a/source/blender/editors/space_clip/tracking_select.c b/source/blender/editors/space_clip/tracking_select.c
index b60d4473ab5..ec3b10a008c 100644
--- a/source/blender/editors/space_clip/tracking_select.c
+++ b/source/blender/editors/space_clip/tracking_select.c
@@ -382,7 +382,7 @@ static int select_poll(bContext *C)
return sc->clip && sc->view == SC_VIEW_CLIP;
}
- return FALSE;
+ return false;
}
static int select_exec(bContext *C, wmOperator *op)
@@ -553,7 +553,7 @@ void CLIP_OT_select_border(wmOperatorType *ot)
ot->flag = OPTYPE_UNDO;
/* properties */
- WM_operator_properties_gesture_border(ot, TRUE);
+ WM_operator_properties_gesture_border(ot, true);
}
/********************** lasso select operator *********************/