Skip to content

Commit

Permalink
add code snippet to force import
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsdvl committed Feb 16, 2024
1 parent d0be685 commit 101e4cc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions addons/io_scene_gltf2_mpeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,19 @@ class glTF2ExportUserExtension(glTF2ExportMpegExtension):
@property
def enabled(self):
return bpy.context.scene.MPEG_ExporterProperties.enabled


##################################################################################
# importer stub - normaly import would fail totaly,
# but here MPEG_* extensions will be simply ignored.
#
# class glTF2ImportUserExtension:
#
# def __init__(self):
# self.extensions = [
# Extension(name="MPEG_media", extension={}, required=True),
# Extension(name="MPEG_buffer_circular", extension={}, required=True),
# Extension(name="MPEG_accessor_timed", extension={}, required=True),
# Extension(name="MPEG_texture_video", extension={}, required=True),
# Extension(name="MPEG_audio_spatial", extension={}, required=True)
# ]

0 comments on commit 101e4cc

Please sign in to comment.