コード例 #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
ファイル: blender.py プロジェクト: patmo141/object_alignment
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