Package pyffi :: Package spells :: Package nif :: Module fix
[hide private]
[frames] | no frames]

Module fix

source code

Module which contains all spells that fix something in a nif.

Implementation

Regression tests

Classes [hide private]
  SpellDelTangentSpace
Delete tangentspace if it is present.
  SpellAddTangentSpace
Add tangentspace if none is present.
  SpellFFVT3RSkinPartition
Create or update skin partition, with settings that work for Freedom Force vs.
  SpellParseTexturePath
Base class for spells which must parse all texture paths, with hook for texture path substitution.
  SpellFixTexturePath
Fix the texture path.
  SpellDetachHavokTriStripsData
For NiTriStrips if their NiTriStripsData also occurs in a bhkNiTriStripsShape, make deep copy of data in havok.
  SpellClampMaterialAlpha
Clamp corrupted material alpha values.
  SpellSendGeometriesToBindPosition
Transform skinned geometries so similar bones have the same bone data, and hence, the same bind position, over all geometries.
  SpellSendDetachedGeometriesToNodePosition
Transform geometries so each set of geometries that shares bones is aligned with the transform of the root bone of that set.
  SpellSendBonesToBindPosition
Transform bones so bone data agrees with bone transforms, and hence, all bones are in bind position.
  SpellMergeSkeletonRoots
Merges skeleton roots in the nif file so that no skeleton root has another skeleton root as child.
  SpellApplySkinDeformation
Apply skin deformation to nif.
  SpellScale
Scale a model.
  SpellFixCenterRadius
Recalculate geometry centers and radii.
  SpellFixSkinCenterRadius
Recalculate skin centers and radii.
  SpellFixMopp
Recalculate mopp data from collision geometry.
  SpellCleanStringPalette
Remove unused strings from string palette.
  SpellDelUnusedRoots
Remove root branches that shouldn't be root branches and are unused in the file such as NiProperty branches that are not properly parented.
  SpellFixBhkSubShapes
Fix bad subshape vertex counts in bhkPackedNiTriStripsShape blocks.
  SpellFixEmptySkeletonRoots
Fix empty skeleton roots in an as sane as possible way.
Variables [hide private]
  __package__ = 'pyffi.spells.nif'