Commit 9a19534a authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #367 from proyan/devel

Update viewer method according to the new Gepetto-Viewer API
parents bfb83318 24e8acd9
......@@ -179,8 +179,8 @@ class RobotWrapper(object):
meshName = self.viewerNodeNames(visual)
meshPath = visual.meshPath
meshScale = visual.meshScale
self.viewer.gui.addMesh(meshName, meshPath)
self.viewer.gui.setScale(meshName, npToTuple(meshScale))
if self.viewer.gui.addMesh(meshName, meshPath):
self.viewer.gui.setScale(meshName, npToTuple(meshScale))
# Finally, refresh the layout to obtain your first rendering.
self.viewer.gui.refresh()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment