mesh tools: merge mesh relax: T71560

This commit is contained in:
Brendon Murphy 2019-12-02 12:43:30 +11:00
parent 7cfd041403
commit 6d5d8e187d
Notes: blender-bot 2023-02-14 18:16:07 +01:00
Referenced by issue #100364, Addon Relax doesn't exist in the Blender.
2 changed files with 6 additions and 0 deletions

View File

@ -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__":