Skip to content

Commit 6a72346

Browse files
committed
notes and typing
1 parent 8b6497d commit 6a72346

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Changed
1515

16-
* Changed `SceneObject.worldtransformation` to the multiplication of all transformations from the scene object to the root of the scene tree.
1716
* Changed `SceneObject.frame` to read-only result of `Frame.from_transformation(SceneObject.worldtransformation)`, representing the local coordinate system of the scene object in world coordinates.
18-
19-
### Removed
17+
* Changed `SceneObject.worldtransformation` to the multiplication of all transformations from the scene object to the root of the scene tree, there will no longer be an additional transformation in relation to the object's frame.
2018

2119

2220
## [2.10.0] 2025-03-03

src/compas/scene/sceneobject.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ def transformation(self, transformation):
169169
@property
170170
def worldtransformation(self):
171171
# type: () -> compas.geometry.Transformation
172+
# NOTE: Behaviour change from 2.11.0, there will no longer be the option of additional transformation in relation to the object's frame
172173
transformations = [self.transformation] if self.transformation else []
173-
parent: SceneObject = self.parent
174+
parent = self.parent
174175
while parent and not parent.is_root:
175176
if parent.transformation:
176177
transformations.append(parent.transformation)

0 commit comments

Comments
 (0)