Skip to content

Commit

Permalink
Merge pull request #3 from aaronfranke/seat-sp-get-sup
Browse files Browse the repository at this point in the history
Fix seat and spawn point missing `_get_supported_extensions`
  • Loading branch information
aaronfranke authored Jul 23, 2023
2 parents 160acd1 + 2c8ec81 commit 3a46029
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/omi_extensions/misc/omi_seat.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ func _import_preflight(_state: GLTFState, extensions: PackedStringArray) -> Erro
return ERR_SKIP


func _get_supported_extensions() -> PackedStringArray:
return PackedStringArray(["OMI_seat"])


func _import_node(_state: GLTFState, _gltf_node: GLTFNode, json: Dictionary, node: Node) -> Error:
if not json.has("extensions"):
return OK
Expand Down
4 changes: 4 additions & 0 deletions addons/omi_extensions/misc/omi_spawn_point.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ func _import_preflight(_state: GLTFState, extensions: PackedStringArray) -> Erro
return ERR_SKIP


func _get_supported_extensions() -> PackedStringArray:
return PackedStringArray(["OMI_spawn_point"])


func _import_node(_state: GLTFState, _gltf_node: GLTFNode, json: Dictionary, node: Node) -> Error:
if not json.has("extensions"):
return OK
Expand Down

0 comments on commit 3a46029

Please sign in to comment.