niftools / blender_niftools_addon

The Blender Niftools Addon is a Blender add-on to enable import and export of NetImmese File Formats including .nif, .kf, .egm.
http://www.niftools.org
Other
385 stars 104 forks source link

Armature : Scale Bone #184

Open neomonkeus opened 10 years ago

neomonkeus commented 10 years ago

Migrated from sf.net

Reminder for myself to implement this for the new blender 2.5x scripts.

Details: blender does not store bone scale in edit mode, but only in pose mode. Need to get the scale from those guys. Simplest way to implement this is to take the PoseBones and to ignore the EditBones (although this might screw up skinning import/export, we'll need to be very careful). Reference post on niftools: http://niftools.sourceforge.net/forum/viewtopic.php?f=21&t=2653

Attachments - https://www.dropbox.com/sh/qgnrvwpjzu4ounk/AACxbf-L9N-BCLeqy35MmLOoa?dl=0

HENDRIX-ZT2 commented 3 years ago

Now that the pose system is properly implemented, it's as easy as pulling out the scale from the bind matrices and storing it on pose bones. Meshes with inv bind pose scales that are not 1.0 (not sure if that exists) will have to be transformed to apply their skin deformation.