Skip to content

Commit

Permalink
Idk???
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Aug 6, 2024
1 parent 0b4183f commit 84ec969
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 56 deletions.
5 changes: 3 additions & 2 deletions addons/SHIRAKUMO_trial_extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from . import physics
from . import exporter
from . import importer
from .exporter import glTF2ExportUserExtension
from .importer import glTF2ImportUserExtension

bl_info = {
"name": "SHIRAKUMO_trial_extensions",
Expand Down Expand Up @@ -38,3 +36,6 @@ def unregister():

if __name__ == "__main__":
register()

from .exporter import glTF2ExportUserExtension
from .importer import glTF2ImportUserExtension
27 changes: 0 additions & 27 deletions addons/SHIRAKUMO_trial_extensions/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,38 +188,11 @@ class SHIRAKUMO_TRIAL_exporter_properties(bpy.types.PropertyGroup):
description="Include Trial-specific extensions",
default=True)

class GLTF_PT_SHIRAKUMO_TRIAL_ExportExtensionPanel(bpy.types.Panel):
bl_space_type = "FILE_BROWSER"
bl_region_type = "TOOL_PROPS"
bl_label = "Enabled"
bl_parent_id = "GLTF_PT_export_user_extensions"
bl_options = {"DEFAULT_CLOSED"}

@classmethod
def poll(cls, context):
sfile = context.space_data
operator = sfile.active_operator
return operator.bl_idname == "EXPORT_SCENE_OT_gltf"

def draw_header(self, context):
props = bpy.context.scene.shirakumo_trial_exporter_props
self.layout.prop(props, "enabled")

def draw(self, context):
layout = self.layout
layout.use_property_split = True
layout.use_property_decorate = False # No animation.

props = bpy.context.scene.shirakumo_trial_exporter_props
layout.active = props.enabled

def register():
#bpy.utils.register_class(GLTF_PT_SHIRAKUMO_TRIAL_ExportExtensionPanel)
bpy.utils.register_class(SHIRAKUMO_TRIAL_exporter_properties)
bpy.types.Scene.shirakumo_trial_exporter_props = bpy.props.PointerProperty(
type=SHIRAKUMO_TRIAL_exporter_properties)

def unregister():
#bpy.utils.unregister_class(GLTF_PT_SHIRAKUMO_TRIAL_ExportExtensionPanel)
bpy.utils.unregister_class(SHIRAKUMO_TRIAL_exporter_properties)
del bpy.types.Scene.shirakumo_trial_exporter_props
27 changes: 0 additions & 27 deletions addons/SHIRAKUMO_trial_extensions/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,11 @@ class SHIRAKUMO_TRIAL_importer_properties(bpy.types.PropertyGroup):
description="Include Trial-specific extensions",
default=True)

class GLTF_PT_SHIRAKUMO_TRIAL_ImportExtensionPanel(bpy.types.Panel):
bl_space_type = "FILE_BROWSER"
bl_region_type = "TOOL_PROPS"
bl_label = "Enabled"
bl_parent_id = "GLTF_PT_import_user_extensions"
bl_options = {"DEFAULT_CLOSED"}

@classmethod
def poll(cls, context):
sfile = context.space_data
operator = sfile.active_operator
return operator.bl_idname == "IMPORT_SCENE_OT_gltf"

def draw_header(self, context):
props = bpy.context.scene.shirakumo_trial_importer_props
self.layout.prop(props, "enabled")

def draw(self, context):
layout = self.layout
layout.use_property_split = False
layout.use_property_decorate = False # No animation.

props = bpy.context.scene.shirakumo_trial_importer_props
layout.active = props.enabled

def register():
#bpy.utils.register_class(GLTF_PT_SHIRAKUMO_TRIAL_ImportExtensionPanel)
bpy.utils.register_class(SHIRAKUMO_TRIAL_importer_properties)
bpy.types.Scene.shirakumo_trial_importer_props = bpy.props.PointerProperty(
type=SHIRAKUMO_TRIAL_importer_properties)

def unregister():
#bpy.utils.unregister_class(GLTF_PT_SHIRAKUMO_TRIAL_ImportExtensionPanel)
bpy.utils.unregister_class(SHIRAKUMO_TRIAL_importer_properties)
del bpy.types.Scene.shirakumo_trial_importer_props

0 comments on commit 84ec969

Please sign in to comment.