Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some deformers as skin and shape deformer need an object to update a blender mesh, but this object must own the blender mesh. To do so we used previously a argument in some deformer constructor to pass a blender object owning the blender mesh. But in case the mesh is replaced the blender object of a game object can't be used, in these case we looked at a blender object registered along the blender mesh during the conversion. With the recent merge of deformer creation into BL_DeformableGameObject::LoadDeformer the look at blender object from mesh was always used. This worked fine only when only one game object used a deformer for one blender mesh, when two deformer used the same mesh the both conflicted and no update appeared. To solve this issue we first check if the blender object of the game object own the blender mesh, else we do the look at.
- Loading branch information