Skip to content

Commit 8a783a4

Browse files
committed
fix context detection
1 parent ba669cb commit 8a783a4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
* Fixed error in `circle_to_compas` from Rhino.
1818
* Fixed Rhino to Rhino brep serialization.
1919
* Upated `compas.scene.Group.add()` to pass on group kwargs as default for child items.
20+
* Fixed bug in context detection, which wrongly defaults to `Viewer` instead of `None`.
2021

2122
### Removed
2223

src/compas/scene/context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def detect_current_context():
112112
return "Rhino"
113113
if compas.is_blender():
114114
return "Blender"
115-
other_contexts = [v for v in ITEM_SCENEOBJECT.keys()]
116-
if other_contexts:
117-
return other_contexts[0]
115+
# other_contexts = [v for v in ITEM_SCENEOBJECT.keys()]
116+
# if other_contexts:
117+
# return other_contexts[0]
118118

119119
return None
120120

0 commit comments

Comments
 (0)