fba59faa50
- Adds a new Avatar Toolkit panel location for UV tools - adds Align UV Edges to target - Allows for aligning uv vertices in a line on one object to another's uvs pixel perfect. This is useful for making one model copy another model's UV's with some user work - Added translation keys for tool
19 lines
552 B
Python
19 lines
552 B
Python
import bpy
|
|
from ..core.register import register_wrap
|
|
from ..functions.translations import t
|
|
from .panel import draw_title
|
|
|
|
@register_wrap
|
|
class UVTools_PT_MainPanel(bpy.types.Panel):
|
|
bl_label = t("AvatarToolkit.label")
|
|
bl_idname = "OBJECT_PT_avatar_toolkit_uv"
|
|
bl_space_type = 'IMAGE_EDITOR'
|
|
bl_region_type = 'UI'
|
|
bl_category = "Avatar Toolkit"
|
|
|
|
def draw(self: bpy.types.Panel, context: bpy.types.Context):
|
|
layout = self.layout
|
|
|
|
sima = context.space_data
|
|
if sima.show_uvedit:
|
|
draw_title(self) |