Пример #1
0
def apply_modifiers(obj: Object, calc_undeformed: bool = False):
    """ apply modifiers to object """
    m = obj.to_mesh(bpy.context.depsgraph if b280() else bpy.context.scene,
                    True,
                    calc_undeformed=calc_undeformed)
    obj.modifiers.clear()
    obj.data = m
Пример #2
0
def apply_modifiers(obj:Object, settings:str="PREVIEW"):
    """ apply modifiers to object """
    m = obj.to_mesh(bpy.context.scene, True, "PREVIEW")
    obj.modifiers.clear()
    obj.data = m
Пример #3
0
def apply_modifiers(obj:Object, settings:str="PREVIEW"):
    """ apply modifiers to object """
    m = obj.to_mesh(bpy.context.scene, True, "PREVIEW")
    obj.modifiers.clear()
    obj.data = m