Skip to content

Commit 14981d9

Browse files
committed
blender uses column-major matrices
1 parent bbd2ed8 commit 14981d9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
* Added ability of `RobotModel.add_link` to accept primitives in addition to meshes.
2020
* Fixed bug regarding the computation of `Joint.current_origin`.
2121
* Fixed bug regarding a repeated call to `RobotModel.add_joint`.
22+
* Fixed bug in :class:`compas_blender.RobotModelArtist.update`.
2223

2324
### Removed
2425

src/compas_blender/artists/robotmodelartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, model):
2222
super(RobotModelArtist, self).__init__(model)
2323

2424
def transform(self, native_mesh, transformation):
25-
native_mesh.matrix_world @= mathutils.Matrix(transformation.matrix)
25+
native_mesh.matrix_world = mathutils.Matrix(transformation.matrix) @ native_mesh.matrix_world
2626

2727
def create_geoemetry(self, geometry, name=None, color=None):
2828
# Imported colors take priority over a the parameter color

0 commit comments

Comments
 (0)