Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from assimp:master #6

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions port/PyAssimp/pyassimp/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,15 @@
#
aiProcess_FixInfacingNormals = 0x2000

## This step generically populates aiBone->mArmature and aiBone->mNode generically
# The point of these is it saves you later having to calculate these elements
# This is useful when handling rest information or skin information
# If you have multiple armatures on your models we strongly recommend enabling this
# Instead of writing your own multi-root, multi-armature lookups we have done the
# hard work for you :)

aiProcess_PopulateArmatureData = 0x4000

## <hr>This step splits meshes with more than one primitive type in
# homogeneous sub-meshes.
#
Expand Down
11 changes: 11 additions & 0 deletions port/PyAssimp/pyassimp/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,14 @@ class Bone(Structure):
# The maximum value for this member is
#AI_MAX_BONE_WEIGHTS.
("mNumWeights", c_uint),

# The bone armature node - used for skeleton conversion
# you must enable aiProcess_PopulateArmatureData to populate this
("mArmature", POINTER(Node)),

# The bone node in the scene - used for skeleton conversion
# you must enable aiProcess_PopulateArmatureData to populate this
("mNode", POINTER(Node)),

# The vertices affected by this bone
("mWeights", POINTER(VertexWeight)),
Expand Down Expand Up @@ -857,6 +865,9 @@ class QuatKey(Structure):

# The value of this key
("mValue", Quaternion),

# The interpolation setting of this key
("mInterpolation", c_uint32)
]

class MeshMorphKey(Structure):
Expand Down
Loading