Getting ready for deploy

This commit is contained in:
Stefan Cepko
2026-06-04 03:49:56 -04:00
parent 61e8889354
commit c3936955ea
12 changed files with 1085 additions and 420 deletions
+13 -8
View File
@@ -6,7 +6,7 @@ All Blender UI classes for knot_animation:
KNOT_UL_List — playlist UIList
KNOT_UL_AllowedMaterialsList— generator filter UIList
draw_knot_properties() — shared property layout helper (collapsible sections)
KNOT_PT_Panel — main N-panel (VIEW_3D > UI > AnimKnots)
KNOT_PT_Panel — main N-panel (VIEW_3D > UI > Pr3tz)
Every major block is collapsible via per-item or per-settings ui_show_* flags.
KnotItem flags are per-item so each playlist entry remembers its own state.
@@ -182,11 +182,11 @@ def draw_knot_properties(layout, item) -> None:
# ---------------------------------------------------------------------------
class KNOT_PT_Panel(bpy.types.Panel):
bl_label = "AnimKnots"
bl_label = "Pr3tz"
bl_idname = "KNOT_PT_panel"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'AnimKnots'
bl_category = 'Pr3tz'
def draw(self, context):
layout = self.layout
@@ -209,8 +209,10 @@ class KNOT_PT_Panel(bpy.types.Panel):
col.operator("knot.add_item", text="", icon='ADD')
col.operator("knot.remove_item", text="", icon='REMOVE')
col.separator()
col.operator("knot.move_item", text="", icon='TRIA_UP').direction = 'UP'
col.operator("knot.move_item", text="", icon='TRIA_DOWN').direction = 'DOWN'
col.operator("knot.move_item", text="", icon='TRIA_UP'
).direction = 'UP'
col.operator("knot.move_item", text="", icon='TRIA_DOWN'
).direction = 'DOWN'
pl_box.operator("knot.populate", icon='FILE_REFRESH')
# ── Selected Knot ─────────────────────────────────────────────────────
@@ -223,7 +225,7 @@ class KNOT_PT_Panel(bpy.types.Panel):
icon_only=True, emboss=False)
ke_row.label(text=f"Knot: {item.name}", icon='CURVE_PATH')
if glob.ui_show_knot_edit:
ke_box.prop(item, "name", text="")
ke_box.prop(item, "name", text="",)
draw_knot_properties(ke_box, item)
ke_box.operator("knot.bake_preview", icon='FILE_TICK')
@@ -400,8 +402,11 @@ class KNOT_PT_Panel(bpy.types.Panel):
gen, "allowed_materials",
gen, "allowed_materials_index",
rows=5)
row_sync.column(align=True).operator(
"knot.sync_generator_materials", icon='FILE_REFRESH', text="")
sync_col = row_sync.column(align=True)
sync_col.operator(
"knot.sync_generator_materials",
icon='FILE_REFRESH', text=""
)
if len(gen.allowed_materials) == 0:
filter_box.label(
text="Click Sync to load project materials & presets",