Skip to content

Commit

Permalink
fix(connector): 2.9.0 update
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-Morgan committed Oct 11, 2022
1 parent ba9ad9a commit fbda011
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bpy_speckle/operators/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def execute(self, context):
name = "{} [ {} @ {} ]".format(stream.name, branch.name, commit.id)
col = create_collection(name)
col.speckle.stream_id = stream.id
col.speckle.name = stream.name
col.speckle.units = stream_data.units
col.speckle.units = stream_data.units or "m"
if col.name not in bpy.context.scene.collection.children:
bpy.context.scene.collection.children.link(col)

Expand All @@ -406,7 +406,7 @@ def execute(self, context):
Set conversion scale from stream units
"""
scale = (
get_scale_length(stream_data.units)
get_scale_length(col.speckle.units)
/ context.scene.unit_settings.scale_length
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "Apache-2.0"

[tool.poetry.dependencies]
python = ">=3.8, <4.0.0"
specklepy = "^2.8.0"
specklepy = "^2.9.0"

[tool.poetry.dev-dependencies]
devtools = "^0.6.1"
Expand Down

0 comments on commit fbda011

Please sign in to comment.