summaryrefslogtreecommitdiff
path: root/modules/gltf/doc_classes
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-09-17 22:06:23 -0500
committerAaron Franke <arnfranke@yahoo.com>2022-09-19 19:39:49 -0500
commitb72dc0de89eb11e7afdb3c2e3bae737bea40524f (patch)
tree12ec3ec7243127ee77aba3f9fa32128acbb65c7d /modules/gltf/doc_classes
parentca1ebf9fee8d58718d41b2c08d22d484764b7f54 (diff)
Make used extensions stored in GLTFState
This allows GLTFDocumentExtension classes to add to the used extensions array.
Diffstat (limited to 'modules/gltf/doc_classes')
-rw-r--r--modules/gltf/doc_classes/GLTFState.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gltf/doc_classes/GLTFState.xml b/modules/gltf/doc_classes/GLTFState.xml
index 1dbd89aed8..6c2f488c1c 100644
--- a/modules/gltf/doc_classes/GLTFState.xml
+++ b/modules/gltf/doc_classes/GLTFState.xml
@@ -7,6 +7,14 @@
<tutorials>
</tutorials>
<methods>
+ <method name="add_used_extension">
+ <return type="void" />
+ <param index="0" name="extension_name" type="String" />
+ <param index="1" name="required" type="bool" />
+ <description>
+ Appends an extension to the list of extensions used by this GLTF file during serialization. If [param required] is true, the extension will also be added to the list of required extensions. Do not run this in [method GLTFDocumentExtension._export_post], as that stage is too late to add extensions. The final list is sorted alphabetically.
+ </description>
+ </method>
<method name="get_accessors">
<return type="GLTFAccessor[]" />
<description>