Added a modal for remove doubles

- made remove doubles a blender modal. this way the code can run over multiple frames.
- Since remove doubles is async now, the user gets feedback on which shapekey and mesh is being worked on
- this does not remove doubles correctly yet, but is very close to ready
This commit is contained in:
989onan
2024-07-07 16:19:52 -04:00
parent 9c50c48a49
commit 9ec186b1cf
5 changed files with 119 additions and 1 deletions
+1
View File
@@ -25,6 +25,7 @@ class AvatarToolkitOptimizationPanel(bpy.types.Panel):
row.scale_y = 1.2
row.operator("avatar_toolkit.join_all_meshes", text="Join All Meshes")
row.operator("avatar_toolkit.join_selected_meshes", text="Join Selected Meshes")
row.operator("avatar_toolkit.remove_doubles_safely", text="Remove Doubles Safely")
# Add optimization options here
+3 -1
View File
@@ -19,4 +19,6 @@ class AvatarToolkitToolsPanel(bpy.types.Panel):
row = layout.row(align=True)
row.scale_y = 1.5
row.operator("avatar_toolkit.convert_to_resonite", text="Translate to Resonite")
row.operator("avatar_toolkit.convert_to_resonite", text="Translate to Resonite")
row = layout.row(align=True)
row.operator("avatar_toolkit.remove_doubles_safely", text="Remove Doubles Safely")