diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-09-17 22:06:23 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-09-19 19:39:49 -0500 |
commit | b72dc0de89eb11e7afdb3c2e3bae737bea40524f (patch) | |
tree | 12ec3ec7243127ee77aba3f9fa32128acbb65c7d /modules/gltf/gltf_state.h | |
parent | ca1ebf9fee8d58718d41b2c08d22d484764b7f54 (diff) |
Make used extensions stored in GLTFState
This allows GLTFDocumentExtension classes to add to the used extensions array.
Diffstat (limited to 'modules/gltf/gltf_state.h')
-rw-r--r-- | modules/gltf/gltf_state.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gltf/gltf_state.h b/modules/gltf/gltf_state.h index 6b2d1ca228..791431f376 100644 --- a/modules/gltf/gltf_state.h +++ b/modules/gltf/gltf_state.h @@ -78,6 +78,8 @@ class GLTFState : public Resource { Vector<int> root_nodes; Vector<Ref<GLTFTexture>> textures; Vector<Ref<Texture2D>> images; + Vector<String> extensions_used; + Vector<String> extensions_required; Vector<Ref<GLTFSkin>> skins; Vector<Ref<GLTFCamera>> cameras; @@ -97,6 +99,8 @@ protected: static void _bind_methods(); public: + void add_used_extension(const String &p_extension, bool p_required = false); + Dictionary get_json(); void set_json(Dictionary p_json); |