Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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