mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-21 23:46:24 +00:00
Fix: Missing keyword for mesh sharpness angle argument
Mistake in b1fbf73a08
This commit is contained in:
@ -1331,7 +1331,7 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, CONSTRAI
|
||||
elif new_chunk.ID == MORPH_SMOOTH and tracking == 'OBJECT': # Smooth angle
|
||||
smooth_angle = read_float(new_chunk)
|
||||
if child.data is not None: # Check if child is a dummy
|
||||
child.data.set_sharp_from_angle(smooth_angle)
|
||||
child.data.set_sharp_from_angle(angle=smooth_angle)
|
||||
|
||||
elif KEYFRAME and new_chunk.ID == COL_TRACK_TAG and tracking == 'AMBIENT': # Ambient
|
||||
keyframe_data = {}
|
||||
|
@ -3013,7 +3013,7 @@ def importShape_ProcessObject(
|
||||
# solid=false, we don't support it yet.
|
||||
creaseAngle = geom.getFieldAsFloat('creaseAngle', None, ancestry)
|
||||
if creaseAngle is not None:
|
||||
bpydata.set_sharp_from_angle(creaseAngle)
|
||||
bpydata.set_sharp_from_angle(angle=creaseAngle)
|
||||
else:
|
||||
bpydata.polygons.foreach_set("use_smooth", [False] * len(bpydata.polygons))
|
||||
|
||||
|
@ -677,7 +677,7 @@ def mu_set_auto_smooth(self, angle, affect, set_smooth_shading):
|
||||
|
||||
#bpy.ops.object.shade_smooth()
|
||||
|
||||
object.data.set_sharp_from_angle(angle) # 35 degrees as radians
|
||||
object.data.set_sharp_from_angle(angle=angle) # 35 degrees as radians
|
||||
|
||||
objects_affected += 1
|
||||
|
||||
|
@ -338,7 +338,7 @@ def CreateBevel(context, CurrentObject):
|
||||
|
||||
bpy.ops.object.shade_smooth()
|
||||
|
||||
context.object.data.set_sharp_from_angle(1.0471975)
|
||||
context.object.data.set_sharp_from_angle(angle=1.0471975)
|
||||
|
||||
# Restore the active object
|
||||
context.view_layer.objects.active = SavActive
|
||||
|
@ -656,7 +656,7 @@ def pov_torus_define(context, op, ob):
|
||||
bpy.ops.object.mode_set(mode="EDIT")
|
||||
bpy.ops.mesh.hide(unselected=False)
|
||||
bpy.ops.object.mode_set(mode="OBJECT")
|
||||
ob.data.set_sharp_from_angle(0.6)
|
||||
ob.data.set_sharp_from_angle(angle=0.6)
|
||||
ob.pov.object_as = "TORUS"
|
||||
ob.update_tag() # as prop set via python not updated in depsgraph
|
||||
|
||||
|
@ -171,7 +171,7 @@ def pov_superellipsoid_define(context, op, ob):
|
||||
bpy.ops.object.mode_set(mode="EDIT")
|
||||
bpy.ops.mesh.hide(unselected=False)
|
||||
bpy.ops.object.mode_set(mode="OBJECT")
|
||||
ob.data.set_sharp_from_angle(1.3)
|
||||
ob.data.set_sharp_from_angle(angle=1.3)
|
||||
ob.pov.object_as = "SUPERELLIPSOID"
|
||||
ob.update_tag() # as prop set via python not updated in depsgraph
|
||||
|
||||
@ -1050,7 +1050,7 @@ def pov_parametric_define(context, op, ob):
|
||||
bpy.ops.object.mode_set(mode="EDIT")
|
||||
bpy.ops.mesh.hide(unselected=False)
|
||||
bpy.ops.object.mode_set(mode="OBJECT")
|
||||
ob.data.set_sharp_from_angle(0.6)
|
||||
ob.data.set_sharp_from_angle(angle=0.6)
|
||||
ob.pov.object_as = "PARAMETRIC"
|
||||
ob.update_tag() # as prop set via python not updated in depsgraph
|
||||
return{'FINISHED'}
|
||||
|
Reference in New Issue
Block a user