Blender Git Loki

Git Commits -> Revision 2fb2075

Revision 2fb2075 by Sergey Sharybin (master)
September 2, 2011, 15:19 (GMT)
Fix #28280: Insert Hook wrong index

Use quite easy and stupid approach like it used for shape keys:
re-make editmesh (editcurve or editlattice) before creating index array
for hook or storing vertex index in parenting object.

Even if hook was added in "current" edit mode, it should be re-mapped on
loading edit data because topology could be changed after it was created.
Such kind of re-loading edit structures is the easiest way for now to
update keyindexes to relevant state.

Also, fixed bug with not re-mapping indices for vertex-parented objects.
Really old error, not sure why it wasn't noticed yet.

Commit Details:

Full Hash: 2fb2075c5b3495fede6980b4f9247f9e89c39d39
SVN Revision: 39878
Parent Commit: 6b4bdf6
Lines Changed: +39, -9

3 Modified Paths:

/source/blender/editors/mesh/editmesh.c (+1, -1) (Diff)
/source/blender/editors/object/object_hook.c (+17, -4) (Diff)
/source/blender/editors/object/object_relations.c (+21, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021