diff options
author | meta-androcto <meta.androcto1@gmail.com> | 2019-12-02 04:43:30 +0300 |
---|---|---|
committer | meta-androcto <meta.androcto1@gmail.com> | 2019-12-02 04:43:30 +0300 |
commit | 6d5d8e187d913bbe4a477b063678c36eb50f1ce7 (patch) | |
tree | 65300cf25a0cbefadf565a76f57db7d242446956 | |
parent | 7cfd041403732d6913415eeda89769ea7d424cfe (diff) |
mesh tools: merge mesh relax: T71560
-rw-r--r-- | mesh_tools/__init__.py | 6 | ||||
-rw-r--r-- | mesh_tools/mesh_relax.py (renamed from mesh_relax.py) | 0 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mesh_tools/__init__.py b/mesh_tools/__init__.py index 13238e50..9a1147b6 100644 --- a/mesh_tools/__init__.py +++ b/mesh_tools/__init__.py @@ -49,6 +49,7 @@ if "bpy" in locals(): importlib.reload(mesh_edges_length) importlib.reload(pkhg_faces) importlib.reload(mesh_cut_faces) + importlib.reload(mesh_relax) else: from . import mesh_offset_edges @@ -63,6 +64,7 @@ else: from . import mesh_edges_length from . import pkhg_faces from . import mesh_cut_faces + from . import mesh_relax import bmesh @@ -1013,6 +1015,8 @@ class VIEW3D_PT_edit_mesh_tools(Panel): props.quad_method = props.ngon_method = 'BEAUTY' row = col_top.row(align=True) row.operator("mesh.tris_convert_to_quads") + row = col_top.row(align=True) + row.operator("mesh.relax") # property group containing all properties for the gui in the panel class EditToolsProps(PropertyGroup): @@ -1134,6 +1138,7 @@ def register(): mesh_edges_length.register() pkhg_faces.register() mesh_cut_faces.register() + mesh_relax.register() # unregistering and removing menus @@ -1159,6 +1164,7 @@ def unregister(): mesh_edges_length.unregister() pkhg_faces.unregister() mesh_cut_faces.unregister() + mesh_relax.unregister() if __name__ == "__main__": diff --git a/mesh_relax.py b/mesh_tools/mesh_relax.py index a1dabf3d..a1dabf3d 100644 --- a/mesh_relax.py +++ b/mesh_tools/mesh_relax.py |