Skip to content

Commit 3284fbc

Browse files
authored
Merge pull request #26 from compas-dev/fix-robotmodelobject-import-viewer
Fix viewer import bug
2 parents 2a0982f + f94653c commit 3284fbc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
* Fixed bug in `compas_viewer` due to import of `RobotModelObject` inside registration function.
15+
1416
### Removed
1517

1618

src/compas_robots/viewer/scene/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
from compas.scene import register
33

44
from compas_robots import RobotModel
5+
from .robotmodelobject import RobotModelObject
56

67

78
@plugin(category="factories", requires=["compas_viewer"])
89
def register_scene_objects():
9-
from .robotmodelobject import RobotModelObject
10-
1110
register(RobotModel, RobotModelObject, context="Viewer")
1211

1312

0 commit comments

Comments
 (0)