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:
Diffstat (limited to 'source/blender/blenkernel/intern/group.c')
-rw-r--r--source/blender/blenkernel/intern/group.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/group.c b/source/blender/blenkernel/intern/group.c
index 2a61b2e7453..e84db7e1f82 100644
--- a/source/blender/blenkernel/intern/group.c
+++ b/source/blender/blenkernel/intern/group.c
@@ -154,17 +154,17 @@ Group *BKE_group_copy(Group *group)
}
/* external */
-static int group_object_add_internal(Group *group, Object *ob)
+static bool group_object_add_internal(Group *group, Object *ob)
{
GroupObject *go;
if (group == NULL || ob == NULL) {
- return FALSE;
+ return false;
}
/* check if the object has been added already */
if (BLI_findptr(&group->gobject, ob, offsetof(GroupObject, ob))) {
- return FALSE;
+ return false;
}
go = MEM_callocN(sizeof(GroupObject), "groupobject");
@@ -172,7 +172,7 @@ static int group_object_add_internal(Group *group, Object *ob)
go->ob = ob;
- return TRUE;
+ return true;
}
bool BKE_group_object_add(Group *group, Object *object, Scene *scene, Base *base)
@@ -296,7 +296,7 @@ static void group_replaces_nla(Object *parent, Object *target, char mode)
{
static ListBase nlastrips = {NULL, NULL};
static bAction *action = NULL;
- static int done = FALSE;
+ static bool done = false;
bActionStrip *strip, *nstrip;
if (mode == 's') {
@@ -310,7 +310,7 @@ static void group_replaces_nla(Object *parent, Object *target, char mode)
action = target->action;
target->action = NULL;
target->nlaflag |= OB_NLA_OVERRIDE;
- done = TRUE;
+ done = true;
}
nstrip = MEM_dupallocN(strip);
BLI_addtail(&target->nlastrips, nstrip);
@@ -325,7 +325,7 @@ static void group_replaces_nla(Object *parent, Object *target, char mode)
BLI_listbase_clear(&nlastrips); /* not needed, but yah... :) */
action = NULL;
- done = FALSE;
+ done = false;
}
}
}