Skip to content

Commit 2fcc505

Browse files
author
Chen Kasirer
committed
fixed NameError in attached_tool_model
1 parent b9792e2 commit 2fcc505

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compas/artists/robotmodelartist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def attached_tool_model(self):
9090
:class: `~compas.robots.model.ToolModel`
9191
9292
"""
93+
tool_model = None
9394
if self.attached_tool_models:
9495
link_name = self.model.get_end_effector_link()
9596
tool_model = self.attached_tool_models.get(link_name) or list(self.attached_tool_models.values())[0]

0 commit comments

Comments
 (0)