Blender V2.61 - r43446
Functions

group.c File Reference

#include <stdio.h>
#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_group_types.h"
#include "DNA_material_types.h"
#include "DNA_object_types.h"
#include "DNA_nla_types.h"
#include "DNA_scene_types.h"
#include "DNA_particle_types.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BKE_global.h"
#include "BKE_group.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_scene.h"

Go to the source code of this file.

Functions

static void free_group_object (GroupObject *go)
void free_group_objects (Group *group)
void unlink_group (Group *group)
Groupadd_group (const char *name)
Groupcopy_group (Group *group)
static int add_to_group_internal (Group *group, Object *ob)
int add_to_group (Group *group, Object *object, Scene *scene, Base *base)
static int rem_from_group_internal (Group *group, Object *ob)
int rem_from_group (Group *group, Object *object, Scene *scene, Base *base)
int object_in_group (Object *ob, Group *group)
Groupfind_group (Object *ob, Group *group)
void group_tag_recalc (Group *group)
int group_is_animated (Object *UNUSED(parent), Group *group)
void group_handle_recalc_and_update (Scene *scene, Object *UNUSED(parent), Group *group)

Detailed Description

Definition in file group.c.


Function Documentation

Group* add_group ( const char *  name) [read]

Definition at line 141 of file group.c.

References alloc_libblock(), G, ID_GR, and Group::layer.

Referenced by group_add_exec(), and group_create_exec().

int add_to_group ( Group group,
Object object,
Scene scene,
Base base 
)
static int add_to_group_internal ( Group group,
Object ob 
) [static]
Group* copy_group ( Group group) [read]

Definition at line 150 of file group.c.

References BLI_duplicatelist(), Group::gobject, and MEM_dupallocN().

Referenced by id_copy().

Group* find_group ( Object ob,
Group group 
) [read]

Definition at line 254 of file group.c.

References G, Group::id, ID::next, NULL, and object_in_group().

Referenced by group_objects_remove_exec(), rem_from_group(), and unlink_group().

static void free_group_object ( GroupObject go) [static]

Definition at line 58 of file group.c.

References MEM_freeN().

Referenced by free_group_objects(), and rem_from_group_internal().

void free_group_objects ( Group group)

Definition at line 64 of file group.c.

References BLI_remlink(), ListBase::first, free_group_object(), and Group::gobject.

Referenced by free_libblock(), and unlink_group().

void group_handle_recalc_and_update ( Scene scene,
Object UNUSEDparent,
Group group 
)
int group_is_animated ( Object UNUSEDparent,
Group group 
)

Definition at line 281 of file group.c.

References ListBase::first, Group::gobject, GroupObject::next, GroupObject::ob, and Object::proxy.

void group_tag_recalc ( Group group)
int object_in_group ( Object ob,
Group group 
)
int rem_from_group ( Group group,
Object object,
Scene scene,
Base base 
)
static int rem_from_group_internal ( Group group,
Object ob 
) [static]
void unlink_group ( Group group)