Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoMico authored and NicoMico committed Jun 17, 2024
1 parent 4c37deb commit 1bd0817
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MMT/mesh_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,14 @@ def execute(self, context):
for import_folder_path in import_folder_path_list:
# TODO 在这里导入当前文件夹下所有的ib vb文件
# 1.我们需要添加到一个新建的集合里,方便后续操作
collection = bpy.data.collections.new("MMT-Import")
folder_draw_ib_name = os.path.basename(import_folder_path)
collection = bpy.data.collections.new(folder_draw_ib_name)
bpy.context.scene.collection.children.link(collection)

# 每个import_folder_path都是一个drawIB
# 这里我们需要获取到文件夹名称
# 获取文件夹名称
folder_draw_ib_name = os.path.basename(import_folder_path)

# 读取文件夹下面所有的vb和ib文件的prefix
prefix_set = set()
# (1) 获取所有ib文件前缀列表
Expand Down

0 comments on commit 1bd0817

Please sign in to comment.