diff --git a/CHANGELOG.md b/CHANGELOG.md index 0448d503..733f10e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed * Fixed no scene object registered for `RobotModel` in context `Rhino`. +* Adapted import inside `RobotModelObject` to latest changes in `compas_ghpython`. ### Removed diff --git a/src/compas_robots/ghpython/scene/robotmodelobject.py b/src/compas_robots/ghpython/scene/robotmodelobject.py index 3c427f6b..ec371807 100644 --- a/src/compas_robots/ghpython/scene/robotmodelobject.py +++ b/src/compas_robots/ghpython/scene/robotmodelobject.py @@ -2,7 +2,7 @@ from __future__ import division from __future__ import print_function -import compas_ghpython +from compas_ghpython.drawing import draw_mesh from compas_ghpython.scene import GHSceneObject from compas_rhino.conversions import transformation_to_rhino @@ -46,7 +46,7 @@ def create_geometry(self, geometry, name=None, color=None): color = color.rgba255 if color else None vertices, faces = geometry.to_vertices_and_faces(triangulated=False) - mesh = compas_ghpython.draw_mesh(vertices, faces, color=color) + mesh = draw_mesh(vertices, faces, color=color) # Try to fix invalid meshes if not mesh.IsValid: