Files
Avatar-Toolkit/ui/optimization.py
T
989onan 9ec186b1cf Added a modal for remove doubles
- made remove doubles a blender modal. this way the code can run over multiple frames.
- Since remove doubles is async now, the user gets feedback on which shapekey and mesh is being worked on
- this does not remove doubles correctly yet, but is very close to ready
2024-07-07 16:19:52 -04:00

32 lines
1.0 KiB
Python

import bpy
from ..core.register import register_wrap
from .panel import AvatarToolkitPanel
@register_wrap
class AvatarToolkitOptimizationPanel(bpy.types.Panel):
bl_label = "Optimization"
bl_idname = "OBJECT_PT_avatar_toolkit_optimization"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = "Avatar Toolkit"
bl_parent_id = "OBJECT_PT_avatar_toolkit"
def draw(self, context):
layout = self.layout
layout.label(text="Optimization Options")
row = layout.row()
row.scale_y = 1.2
row.operator("avatar_toolkit.combine_materials", text="Combine Materials")
layout.separator(factor=0.5)
row = layout.row(align=True)
row.scale_y = 1.2
row.operator("avatar_toolkit.join_all_meshes", text="Join All Meshes")
row.operator("avatar_toolkit.join_selected_meshes", text="Join Selected Meshes")
row.operator("avatar_toolkit.remove_doubles_safely", text="Remove Doubles Safely")
# Add optimization options here