Skip to content

Commit 1af2b03

Browse files
committed
Changelog
1 parent 5b10b45 commit 1af2b03

3 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
@@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3535
* Fixed a bug when printing an empty `Tree`.
3636
* Fixed a bug in `Group` for IronPython where the decoding declaration was missing.
3737
* Fixed a bug where a `Group` without name could not be added to the scene.
38+
* Fixed a bug where `angle_vectors_projected` returned a 0 when an input vector was parallel to projection normal. Now returns `None`.
3839

3940
### Removed
4041

src/compas/files/gltf/gltf_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def rotation(self, value):
162162
if self._matrix:
163163
raise Exception("Cannot set rotation when matrix is set.")
164164
if not isinstance(value, list) or len(value) != 4 or fabs(sum([q**2 for q in value]) - 1) > 1e-03:
165-
raise Exception("Invalid rotation. Rotations are expected to be given as " "unit quaternions of the form [q1, q2, q3, q4]")
165+
raise Exception("Invalid rotation. Rotations are expected to be given as unit quaternions of the form [q1, q2, q3, q4]")
166166
self._rotation = value
167167

168168
@property
@@ -199,7 +199,7 @@ def matrix(self, value):
199199
raise Exception("Invalid matrix. A 4x4 matrix is expected.")
200200
if value[3] != [0, 0, 0, 1]:
201201
raise Exception(
202-
"Invalid matrix. A matrix without shear or skew is expected. It must be of " "the form TRS, where T is a translation, R is a rotation and S is a scaling."
202+
"Invalid matrix. A matrix without shear or skew is expected. It must be of the form TRS, where T is a translation, R is a rotation and S is a scaling."
203203
)
204204
self._matrix = value
205205

src/compas/rpc/dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _dispatch(self, name, args):
122122
try:
123123
idict = json.loads(args[0], cls=DataDecoder)
124124
except (IndexError, TypeError):
125-
odict["error"] = "API methods require a single JSON encoded dictionary as input.\n" "For example: input = json.dumps({'param_1': 1, 'param_2': [2, 3]})"
125+
odict["error"] = "API methods require a single JSON encoded dictionary as input.\nFor example: input = json.dumps({'param_1': 1, 'param_2': [2, 3]})"
126126

127127
else:
128128
self._call(function, idict, odict)

0 commit comments

Comments
 (0)