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:
authorCampbell Barton <ideasman42@gmail.com>2013-09-02 02:01:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-02 02:01:21 +0400
commit4c7ded98bcaea036de7ea8b790f5fa9a5b6d21e3 (patch)
treed81c3f3bb5e4cf5e0ecfa066775d80b1283a7dc0 /source/blender/editors/include/ED_object.h
parent6bab1d408fc27de855827c42122eaa6e7549bd63 (diff)
support for vertex parenting in object mode for object types which support it (mesh, lattice, curve, surface)
previously this had to be done one by one. both single and triagle vertex parents can be made, selected based on distance to the verts. Developer notes: - looks like this was old TODO, enums existed but weren't used. - only meshes currently support using. - added BKE_object_as_kdtree(), may come in handy for similar cases.
Diffstat (limited to 'source/blender/editors/include/ED_object.h')
-rw-r--r--source/blender/editors/include/ED_object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h
index bcc09cced3b..7553cb3699c 100644
--- a/source/blender/editors/include/ED_object.h
+++ b/source/blender/editors/include/ED_object.h
@@ -92,7 +92,7 @@ typedef enum eParentType {
PAR_PATH_CONST,
PAR_LATTICE,
PAR_VERTEX,
- PAR_TRIA
+ PAR_VERTEX_TRI
} eParentType;
#ifdef __RNA_TYPES_H__
@@ -101,7 +101,7 @@ extern struct EnumPropertyItem prop_make_parent_types[];
#endif
int ED_object_parent_set(struct ReportList *reports, struct Main *bmain, struct Scene *scene, struct Object *ob,
- struct Object *par, int partype, int xmirror, int keep_transform);
+ struct Object *par, int partype, bool xmirror, bool keep_transform, const int vert_par[3]);
void ED_object_parent_clear(struct Object *ob, int type);
struct Base *ED_object_scene_link(struct Scene *scene, struct Object *ob);