Skip to content

Commit 38a7d63

Browse files
committed
changelog
1 parent ab5425a commit 38a7d63

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
* Added `inheritance` field to `__jsondump__` of `compas.datastructures.Datastructure` to allow for deserialization to closest available superclass of custom datastructures.
13+
* Added `compas.scene.Scene.get_sceneobject_node` to get the TreeNode that corresponds to a scene object.
14+
* Added `compas.scene.SceneObjectFactory` method to create appropriate scene objects from data.
1315

1416
### Changed
1517

18+
* Changed `compas.scene.Scene` to use underlying `datastore`, `objectstore` and `tree` attributes for more transparent serialization and deserialization processes.
19+
* Changed `compas.scene.SceneObject` to use object `guid` to retrieve the corresponding TreeNode from the scene tree, and use item `guid` to retrieve the corresponding data item from the scene datastore.
20+
1621
### Removed
1722

23+
* Removed `compas.scene.SceneObject.__new__` method, explicitly use `compas.scene.SceneObjectFactory` instead.
24+
1825

1926
## [2.11.0] 2025-04-22
2027

tests/compas/scene/test_scene.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
import compas
23

34
if not compas.IPY:

0 commit comments

Comments
 (0)