-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix replication of armature constraint objects.
The objects used for the armature constraints are blender objects, but previously when an armature was replicated the blender objects weren't, so the solving of the constraints was wrong. To solve this issue we need to use a new blender object. Instead of replicating the original blender object targeted, we simply use a dummy object which is an enpty blender object created by each BL_ArmatureConstraint, this object is set to the constraints calling flush_constraint_targets with no_copy to 0. For constraint targeting an other armature bone, the pose is set into the blender object in BL_ArmatureConstraint::UpdateTarget. These object are then freed at the BL_ArmatureContraint desctruction with a pose set to nullptr to avoid free a not owned armature pose. Fix issue #393.
- Loading branch information
1 parent
d1beb87
commit 222220b
Showing
3 changed files
with
100 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
222220b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Bravo