~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to source/blender/include/BIF_editarmature.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: BIF_editarmature.h 16742 2008-09-26 08:51:05Z aligorith $
 
2
 * $Id: BIF_editarmature.h 19305 2009-03-16 02:55:42Z theeth $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
68
68
 
69
69
} EditBone;
70
70
 
 
71
EditBone *addEditBone(char *name, struct ListBase *ebones, struct bArmature *arm);
 
72
 
 
73
/* duplicate method */
 
74
void preEditBoneDuplicate(struct ListBase *editbones);
 
75
EditBone *duplicateEditBone(EditBone *curBone, char *name, struct ListBase *editbones, struct Object *ob);
 
76
void updateDuplicateSubtarget(EditBone *dupBone, struct ListBase *editbones, struct Object *ob);
 
77
 
 
78
/* duplicate method (cross objects */
 
79
 
 
80
/* editbones is the target list */
 
81
EditBone *duplicateEditBoneObjects(EditBone *curBone, char *name, struct ListBase *editbones, struct Object *src_ob, struct Object *dst_ob);
 
82
 
 
83
/* editbones is the source list */
 
84
void updateDuplicateSubtargetObjects(EditBone *dupBone, struct ListBase *editbones, struct Object *src_ob, struct Object *dst_ob);
 
85
 
 
86
/* -- */
 
87
 
 
88
float   rollBoneToVector(EditBone *bone, float new_up_axis[3]);
 
89
 
 
90
void    make_boneList(struct ListBase *list, struct ListBase *bones, EditBone *parent);
 
91
void    editbones_to_armature (struct ListBase *list, struct Object *ob);
71
92
 
72
93
void    adduplicate_armature(void);
73
94
void    addvert_armature(void);
113
134
void    armature_select_hierarchy(short direction, short add_to_sel);
114
135
 
115
136
void    setflag_armature(short mode);
116
 
void    unique_editbone_name (struct ListBase *ebones, char *name);
 
137
void    unique_editbone_name (struct ListBase *ebones, char *name, EditBone *bone); /* if bone is already in list, pass it as param to ignore it */
117
138
 
118
139
void    auto_align_armature(short mode);
119
140
void    switch_direction_armature(void);
148
169
 
149
170
#define BONESEL_NOSEL   0x80000000      /* Indicates a negative number */
150
171
 
 
172
/* from editarmature_retarget */
 
173
void BIF_retargetArmature();
 
174
void BIF_adjustRetarget();
 
175
void BIF_freeRetarget();
 
176
 
 
177
/* from editarmature_sketch */
 
178
void BIF_freeSketch();
 
179
void BIF_freeTemplates();
 
180
 
 
181
struct ReebArc;
 
182
float calcVariance(struct ReebArc *arc, int start, int end, float v0[3], float n[3]);
 
183
float calcDistance(struct ReebArc *arc, int start, int end, float head[3], float tail[3]);
 
184
 
151
185
/* useful macros */
152
186
#define EBONE_VISIBLE(arm, ebone) ((arm->layer & ebone->layer) && !(ebone->flag & BONE_HIDDEN_A))
153
187
#define EBONE_EDITABLE(ebone) ((ebone->flag & BONE_SELECTED) && !(ebone->flag & BONE_EDITMODE_LOCKED))