Skip to content

Commit 025e3bf

Browse files
author
nkx
committed
minor update on annotation
1 parent 27efd65 commit 025e3bf

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

io_mesh_w3d/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,22 +338,18 @@ class Operator_AddTexturePath(Operator):
338338
bl_idname = "addonname.add_texture_path"
339339
bl_label = "Add Texture Path"
340340

341-
# 用于存储用户选择的文件路径
342341
directory: StringProperty(
343342
subtype='DIR_PATH',
344343
default="",
345344
)
346345

347346
def invoke(self, context, event):
348-
# 打开文件夹选择器
349347
context.window_manager.fileselect_add(self)
350348
return {'RUNNING_MODAL'}
351349

352350
def execute(self, context):
353351
if self.directory:
354-
# 获取插件偏好设置
355352
prefs = context.preferences.addons[__name__].preferences
356-
# 添加新路径项
357353
new_path = prefs.texture_paths.add()
358354
new_path.name = self.directory
359355
return {'FINISHED'}
@@ -362,7 +358,7 @@ class Operator_RemoveTexturePath(Operator):
362358
bl_idname = "addonname.remove_texture_path"
363359
bl_label = "Remove Texture Path"
364360

365-
index: IntProperty(default=0) # 要删除的路径索引
361+
index: IntProperty(default=0)
366362

367363
def execute(self, context):
368364
prefs = context.preferences.addons[__name__].preferences

readme_plugin_cn.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GitHub地址:https://github.com/nkx111/OpenSAGE.BlenderPlugin
2020

2121
2025/6/7(0.8.1) 更新:
2222
修复【分离顶点】导致顶点法向异常的问题。(当一个顶点有多个uv坐标时(即该顶点附近贴图不连续),需要【分离顶点】)
23-
允许不退回物体模式导出。导出时自动退回物体模式
23+
允许不退回物体模式导出。导出时自动退回物体模式
2424
网格和碰撞箱支持物体级别的缩放
2525
优化了导出界面的选项,优化了【分文件导出】的效果。新增自动创建贴图文件的导出选项。
2626

0 commit comments

Comments
 (0)