We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea3e9f commit c9772d2Copy full SHA for c9772d2
src/compas/files/gltf/data_classes.py
@@ -45,6 +45,14 @@ def extensions_from_data(cls, data):
45
extensions[key] = value_data
46
return extensions
47
48
+ def to_data(self, *args, **kwargs):
49
+ dct = {}
50
+ if self.extras is not None:
51
+ dct["extras"] = self.extras
52
+ if self.extensions is not None:
53
+ dct["extensions"] = self.extensions_to_data()
54
+ return dct
55
+
56
57
class SamplerData(BaseGLTFDataClass):
58
def __init__(
0 commit comments