Blender Kitsu: Refactor Shot Builder #183

Merged
Nick Alberelli merged 55 commits from TinyNick/blender-studio-pipeline:feature/shot-builder-2 into main 2023-12-21 23:58:21 +01:00
2 changed files with 1 additions and 27 deletions
Showing only changes of commit a2efddf4b5 - Show all commits

View File

@ -1,15 +1,13 @@
import bpy
from . import ops, ui
from . import ops
from .ui import topbar_file_new_draw_handler
def register():
bpy.types.TOPBAR_MT_file_new.append(topbar_file_new_draw_handler)
ops.register()
ui.register()
def unregister():
bpy.types.TOPBAR_MT_file_new.remove(topbar_file_new_draw_handler)
ops.unregister()
ui.unregister()

View File

@ -5,27 +5,3 @@ from typing import Any
def topbar_file_new_draw_handler(self: Any, context: bpy.types.Context) -> None:
layout = self.layout
op = layout.operator("kitsu.build_new_shot", text="Shot File")
class KITSU_PT_new_shot_panel(bpy.types.Panel): # TODO Remove (for testing only)
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_label = "New Shot"
bl_category = "New Shot"
def draw(self, context):
self.layout.operator("kitsu.build_new_shot")
self.layout.operator("kitsu.save_shot_builder_hooks")
classes = (KITSU_PT_new_shot_panel,)
def register():
for cls in classes:
bpy.utils.register_class(cls)
def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)