Skip to content

Commit

Permalink
Merge pull request mmatl#44 from ken2576/master
Browse files Browse the repository at this point in the history
Fixed the bugs in setting camera pose
  • Loading branch information
mmatl authored Aug 2, 2019
2 parents 94c3b78 + 84ccac5 commit 4258e08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyrender/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self,
self.translation = translation
self.scale = scale
else:
self.matrix = matrix
self._matrix = matrix

self.name = name
self.camera = camera
Expand Down
2 changes: 1 addition & 1 deletion pyrender/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def set_pose(self, node, pose):
"""
if node not in self.nodes:
raise ValueError('Node must already be in scene')
node.matrix = pose
node._matrix = pose
if node.mesh is not None:
self._bounds = None

Expand Down

0 comments on commit 4258e08

Please sign in to comment.