|
Blender
V2.59
|
#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) |
| Group * | add_group (const char *name) |
| Group * | copy_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) |
| Group * | find_group (Object *ob, Group *group) |
| void | group_tag_recalc (Group *group) |
| int | group_is_animated (Object *parent, Group *group) |
| void | group_handle_recalc_and_update (Scene *scene, Object *UNUSED(parent), Group *group) |
| Object * | group_get_member_with_action (Group *group, bAction *act) |
| void | group_relink_nla_objects (Object *ob) |
Definition in file group.c.
| Group* add_group | ( | const char * | name | ) | [read] |
Definition at line 137 of file group.c.
References alloc_libblock(), G, Main::group, ID_GR, Group::layer, and Global::main.
Referenced by group_add_exec(), and group_create_exec().
Definition at line 176 of file group.c.
References add_to_group_internal(), Base::flag, Object::flag, NULL, OB_FROMGROUP, and object_in_scene().
Referenced by group_add_exec(), group_create_exec(), group_link_exec(), object_add_duplicate_internal(), and objects_add_active_exec().
Definition at line 157 of file group.c.
References BLI_addtail(), ListBase::first, Group::gobject, MEM_callocN(), GroupObject::next, NULL, and GroupObject::ob.
Referenced by add_to_group().
Definition at line 146 of file group.c.
References BLI_duplicatelist(), Group::gobject, and MEM_dupallocN().
Referenced by id_copy().
Definition at line 250 of file group.c.
References ListBase::first, G, Main::group, Group::id, Global::main, 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 59 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 65 of file group.c.
References BLI_remlink(), ListBase::first, free_group_object(), and Group::gobject.
Referenced by free_libblock(), and unlink_group().
Definition at line 385 of file group.c.
References bActionStrip::act, Object::action, ListBase::first, Group::gobject, GroupObject::next, bActionStrip::next, Object::nlastrips, NULL, and GroupObject::ob.
Definition at line 337 of file group.c.
References RenderData::cfra, ListBase::first, give_timeoffset(), Group::gobject, GroupObject::next, Object::nlastrips, GroupObject::ob, object_handle_update(), Scene::r, GroupObject::recalc, and Object::recalc.
Definition at line 277 of file group.c.
References ListBase::first, give_timeoffset(), Group::gobject, GroupObject::next, Object::nlastrips, GroupObject::ob, and Object::proxy.
Referenced by group_duplilist().
| void group_relink_nla_objects | ( | Object * | ob | ) |
Definition at line 410 of file group.c.
References Object::dup_group, ListBase::first, Group::gobject, Object::id, ID::name, GroupObject::next, bActionStrip::next, Object::nlastrips, NULL, GroupObject::ob, and bActionStrip::object.
| void group_tag_recalc | ( | Group * | group | ) |
Definition at line 265 of file group.c.
References ListBase::first, Group::gobject, GroupObject::next, NULL, GroupObject::ob, GroupObject::recalc, and Object::recalc.
Definition at line 237 of file group.c.
References ListBase::first, Group::gobject, GroupObject::next, NULL, and GroupObject::ob.
Referenced by animdata_filter_dopesheet(), find_group(), object_add_duplicate_internal(), object_select_same_group_exec(), objects_add_active_exec(), objects_remove_active_exec(), psys_check_group_weights(), and select_grouped_group().
Definition at line 217 of file group.c.
References find_group(), Base::flag, NULL, OB_FROMGROUP, object_in_scene(), and rem_from_group_internal().
Referenced by group_objects_remove_exec(), group_remove_exec(), lib_link_group(), objects_remove_active_exec(), unlink_group(), and unlink_object().
Definition at line 197 of file group.c.
References BLI_remlink(), ListBase::first, free_group_object(), Group::gobject, GroupObject::next, NULL, and GroupObject::ob.
Referenced by rem_from_group().
| void unlink_group | ( | Group * | group | ) |
Definition at line 77 of file group.c.
References Scene::base, ParticleSettings::dup_group, Object::dup_group, ParticleSettings::eff_group, find_group(), ListBase::first, Base::flag, Object::flag, free_group_objects(), G, Material::group, Group::id, Material::id, Object::id, Scene::id, RenderData::layers, SceneRenderLayer::light_override, Global::main, Main::mat, Base::next, bActionStrip::next, ID::next, SceneRenderLayer::next, ParticleSystem::next, Object::nlastrips, NULL, OB_FROMGROUP, Main::object, Base::object, bActionStrip::object, ParticleSystem::part, Object::particlesystem, Scene::r, rem_from_group(), Main::scene, and ID::us.
Referenced by id_unlink(), and unlink_group_cb().