feat: add new operator about convert curve to mesh with group infos.

- add a new operator which can converte selected object to mesh, and if object is curve and has bevel object, it will copy the virtools group info of bevel object at the same time.
- add a hint in virtools group panel to tell user that the virtools group of non-mesh object will not be saved.
This commit is contained in:
2025-01-05 20:06:40 +08:00
parent 76f1cdc3c7
commit 6ae8899912
3 changed files with 68 additions and 2 deletions

View File

@ -377,7 +377,13 @@ class BBP_PT_virtools_groups(bpy.types.Panel):
def draw(self, context):
layout = self.layout
target = bpy.context.active_object
target = typing.cast(bpy.types.Object, context.active_object)
# notify on non-mesh object
if target.type != 'MESH':
layout.label(text = 'Virtools Group is invalid on non-mesh object!', icon = 'ERROR')
# draw main body
row = layout.row()
row.template_list(