Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1444 +/- ##
==========================================
+ Coverage 61.83% 61.85% +0.01%
==========================================
Files 207 208 +1
Lines 22321 22333 +12
==========================================
+ Hits 13803 13814 +11
- Misses 8518 8519 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gonzalocasas
left a comment
There was a problem hiding this comment.
I think this looks good, it's surprising that such a small change creates this feature, I guess this is just giving it a cleaner name to abusing empty SceneObjects
@gonzalocasas I realized an issue when I'm adding group to the serialization test, where |
src/compas/scene/sceneobject.py
Outdated
| ): # fmt: skip | ||
| # type: (...) -> None | ||
| if not isinstance(item, Data): | ||
| if not isinstance(item, (Data, type(None))): |
There was a problem hiding this comment.
should this not be: if item and not isinstance(item, Data)?
There was a problem hiding this comment.
Indeed, looks more elegant, updated!
|
Also, i was wondering if it would be cleaner to use a |
Sure, Factory pattern could be more readable than __ new __, I can experiment the idea a bit in another PR |
Adding a
Groupobject to Scene, which is a customSceneObject. The usages are similar to Three.js: