def terminate(global_undo):
# update editmesh cached data
obj = bpy.context.active_object
if obj.mode == 'EDIT':
bmesh.update_edit_mesh(obj.data, tessface=True, destructive=True)
bpy.context.user_preferences.edit.use_global_undo = global_undo
##########################################
####### Relax functions ##################
##########################################
#Relax: create lists with knots and points, all correctly sorted
评论列表
文章目录