[Bf-blender-cvs] [1cd4a88] master: Code cleanup: short -> bool
Joshua Leung
noreply at git.blender.org
Mon Apr 28 09:34:39 CEST 2014
Commit: 1cd4a884233a38cecfe6e2aa42d87842ab008a93
Author: Joshua Leung
Date: Mon Apr 28 19:20:14 2014 +1200
https://developer.blender.org/rB1cd4a884233a38cecfe6e2aa42d87842ab008a93
Code cleanup: short -> bool
===================================================================
M source/blender/editors/space_nla/nla_edit.c
===================================================================
diff --git a/source/blender/editors/space_nla/nla_edit.c b/source/blender/editors/space_nla/nla_edit.c
index da619ed..10fc8e5 100644
--- a/source/blender/editors/space_nla/nla_edit.c
+++ b/source/blender/editors/space_nla/nla_edit.c
@@ -257,7 +257,7 @@ void NLA_OT_tweakmode_exit(wmOperatorType *ot)
/* *************************** Calculate Range ************************** */
/* Get the min/max strip extents */
-static void get_nlastrip_extents(bAnimContext *ac, float *min, float *max, const short onlySel)
+static void get_nlastrip_extents(bAnimContext *ac, float *min, float *max, const bool onlySel)
{
ListBase anim_data = {NULL, NULL};
bAnimListElem *ale;
@@ -280,7 +280,7 @@ static void get_nlastrip_extents(bAnimContext *ac, float *min, float *max, const
for (strip = nlt->strips.first; strip; strip = strip->next) {
/* only consider selected strips? */
- if ((onlySel == 0) || (strip->flag & NLASTRIP_FLAG_SELECT)) {
+ if ((onlySel == false) || (strip->flag & NLASTRIP_FLAG_SELECT)) {
/* extend range if appropriate */
*min = min_ff(*min, strip->start);
*max = max_ff(*max, strip->end);
@@ -306,7 +306,7 @@ static void get_nlastrip_extents(bAnimContext *ac, float *min, float *max, const
/* ****************** View-All Operator ****************** */
-static int nlaedit_viewall(bContext *C, const short onlySel)
+static int nlaedit_viewall(bContext *C, const bool onlySel)
{
bAnimContext ac;
View2D *v2d;
More information about the Bf-blender-cvs
mailing list