
> >
> > 1. A typo on line 1424
> >
> > 2. For some reason, triShape.getNiSkinInstance() does not return None
> > when the NiSkinInstanceId is -1 ... I didn't trace the cause, but
below
> > is a quick and dirty fix.
> >
> > Note that things don't seem very well lined up when importing that
> > model... problems in transformation matrices?
> >
> > Cheers,
> > Amorilia
> >
> > Index: nif_import_237.py
> > ===================================================================
> > --- nif_import_237.py (old)
> > +++ nif_import_237.py (new)
> > @@ -1421,7 +1421,7 @@
> > triShape = block.getChildren()[0]
> > xform = xform * triShape.getMatrix()
> > else:
> > - trishape = block
> > + triShape = block
> > # Texturing property. From this I can retireve texture info
> > texProperty = triShape.getNiTexturingProperty()
> > # Material Property, from this I can retrieve material info
> > @@ -1521,8 +1521,8 @@
> > meshObj.setMatrix(xform)
> > # Skinning info, for meshes affected by bones. Adding
> groups to
> > a mesh c an be done only after this is already
> > # linked to an object
> > - skinInstance = triShape.getNiSkinInstance()
> > - if skinInstance:
> > + if (triShape.getNiSkinInstanceId() != -1):
> > + skinInstance = triShape.getNiSkinInstance()
> > skinData = skinInstance.getNiSkinData()
> > weights = skinData.getWeights()
> > for idx, bone in enumerate(skinInstance.getBones()):
> >
> >
> >
> >
> > (NIFLA) NetImmerse File Format: Liberation Association
> > Yahoo! Groups Links
(NIFLA) NetImmerse File Format: Liberation Association
Yahoo! Groups Links