Skip to content

Commit af152ef

Browse files
committed
include object's own frame
1 parent ea316f9 commit af152ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4747
* Changed `compas_rhino.geometry.curves.new_nurbscurve_from_...` to `nurbscurve_from_...`.
4848
* Fixed `compas_ghpython` Grasshopper components not included in published pakcage.
4949
* Chnaged `compas.colors.Color.coerce` to take color as is, if it is already aninstance of `compas.colors.Color`.
50+
* Fixed a bug in `worldtransformation` of `compas.scene.SceneObject` to include the object's own frame.
5051

5152
### Removed
5253

src/compas/scene/sceneobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def transformation(self, transformation):
176176
@property
177177
def worldtransformation(self):
178178
# type: () -> compas.geometry.Transformation
179-
frame_stack = []
179+
frame_stack = [self.frame] if self.frame else []
180180
parent = self.parent
181181
while parent and not parent.is_root:
182182
if parent.frame:

0 commit comments

Comments
 (0)