5cad28a41b
fix pointers in operators to point to class bl_idname property
23 lines
730 B
Python
23 lines
730 B
Python
import bpy
|
|
from bpy.types import Panel, Context, UILayout
|
|
from ..core.translations import t
|
|
from .main_panel import CATEGORY_NAME
|
|
|
|
class AvatarToolKit_PT_UVPanel(Panel):
|
|
"""Main UV Tools panel for Avatar Toolkit"""
|
|
bl_label = t("AvatarToolkit.label")
|
|
bl_idname = "OBJECT_PT_avatar_toolkit_uv_main"
|
|
bl_space_type = 'IMAGE_EDITOR'
|
|
bl_region_type = 'UI'
|
|
bl_category = CATEGORY_NAME
|
|
|
|
def draw(self, context: Context) -> None:
|
|
layout: UILayout = self.layout
|
|
|
|
# Add title section
|
|
box: UILayout = layout.box()
|
|
col: UILayout = box.column(align=True)
|
|
row: UILayout = col.row()
|
|
row.scale_y = 1.2
|
|
row.label(text=t("AvatarToolkit.label"), icon='UV')
|