-
-
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 modifier deformer normal recalculation.
Before if an object was using a modifier and armature deformation the deformer BL_ModifierDeformer was created and during an Update the armature mesh was first updated. But the function responsible to update the armature mesh is also recalculating the normals. But the derived mesh can have an higher number of vertices and so the update of normals was based on an incorrect number of vertices which induced memory overflow. When updating a derived mesh, then normals don't need to be updated. In this case BL_SkinDeformer::UpdateInternal should informs BGEDeformVerts or BlenderDeformVerts to not update normals. This is achieve by introducing a "recalcNormal" argument to functions UpdateInternal in BL_SkinDeformer and BL_ShapeDeformer levels. When the update is directly proceeded from one of these classes, recalcNormal is to true, if they are updated through top BL_ModifierDeformer recalcNormal is to false. Fix issue: #862.
- Loading branch information
1 parent
ea1ffff
commit 9f54aab
Showing
5 changed files
with
33 additions
and
23 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
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