feat: 初始化Easy Patch插件及依赖文件
- 添加Blender插件核心文件:__init__.py、ui.py、property.py、preference.py - 添加插件工具模块:g.py、loop.py、generate_loop.py、const.py、op.py - 添加翻译工具:utils/trans.py - 添加PuLP线性规划库及其依赖文件,包括CBC求解器二进制文件 - 添加.gitignore和VSCode配置文件
This commit is contained in:
20
property.py
Normal file
20
property.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import bpy
|
||||
from .utils.trans import t
|
||||
|
||||
|
||||
def update_snap_obj(self, context):
|
||||
if self.snap_obj == context.active_object:
|
||||
self.snap_obj = None
|
||||
|
||||
|
||||
class EasyPatchProperty(bpy.types.PropertyGroup):
|
||||
snap_obj: bpy.props.PointerProperty(
|
||||
type=bpy.types.Object,
|
||||
description=t(
|
||||
"snap_obj_setting_desc",
|
||||
),
|
||||
update=update_snap_obj,
|
||||
) # type: ignore
|
||||
|
||||
|
||||
property_classes = (EasyPatchProperty,)
|
||||
Reference in New Issue
Block a user