代码拉取完成,页面将自动刷新
同步操作将从 五谷延年/ueskeleton 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright Wuguyannian All Rights Reserved.
import bpy
from .ui import exporter
from .functions import scene
from .functions import templates
from bpy_extras.io_utils import ImportHelper
class RemoveTemplateFolder(bpy.types.Operator):
"""Remove this template from the addon"""
bl_idname = "ueskeleton.remove_template_folder"
bl_label = "Delete this template?"
def execute(self, context):
properties = bpy.context.window_manager.ueskeleton
templates.remove_template_folder(properties)
return {'FINISHED'}
def invoke(self, context, event):
wm = context.window_manager
return wm.invoke_confirm(self, event)
class ConvertToEpicSkeleton(bpy.types.Operator):
"""Convert the source skeleton to a epic skeleton"""
bl_idname = "ueskeleton.convert_to_epic_skeleton"
bl_label = "Convert"
def execute(self, context):
properties = bpy.context.window_manager.ueskeleton
scene.convert_to_epic_skeleton(properties)
print("convert execute")
return {'FINISHED'}
class ExportSkeletonTemplate(bpy.types.Operator, exporter.ExportSkeletonTemplate):
"""Export a skeleton template"""
bl_idname = "ueskeleton.export_skeleton_template"
bl_label = "Export Template"
def execute(self, context):
properties = bpy.context.window_manager.ueskeleton
templates.export_zip(self.filepath, properties)
return {'FINISHED'}
class ImportSkeletonTemplate(bpy.types.Operator, ImportHelper):
"""Import a skeleton template"""
bl_idname = "ueskeleton.import_skeleton_template"
bl_label = "Import Template"
filename_ext = ".zip"
def execute(self, context):
properties = bpy.context.window_manager.ueskeleton
templates.import_zip(self.filepath, properties)
return {'FINISHED'}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。