Commit 24e8acd9 authored by Rohan Budhiraja's avatar Rohan Budhiraja
Browse files

[Python] Fix robot_wrapper binding

* addMesh returns boolean. Proceed only if addMesh is True
parent bfb83318
......@@ -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()
......
Supports Markdown
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