Skip to content

Commit

Permalink
fix: change default screw steps to 28.
Browse files Browse the repository at this point in the history
- change default screw steps to 28 (7 steps for 90 degree)
- update blender mesh annotation.
  • Loading branch information
yyc12345 committed May 25, 2024
1 parent 5d8ffb7 commit 8588f09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bbp_ng/OP_ADDS_rail.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class SharedScrewRailInputProperty():
rail_screw_steps: bpy.props.IntProperty(
name = "Steps",
description = "The segment count per iteration. More segment, more smooth but lower performance.",
default = 16,
default = 28,
min = 1,
) # type: ignore

Expand Down
8 changes: 4 additions & 4 deletions bbp_ng/UTIL_blender_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ class TemporaryMesh():
"""

__mBindingObject: bpy.types.Object | None
__mTempMesh: bpy.types.Mesh | None
__mBindingObject: bpy.types.Object
__mTempMesh: bpy.types.Mesh

def __init__(self, binding_obj: bpy.types.Object):
self.__mBindingObject = binding_obj
Expand Down Expand Up @@ -149,7 +149,7 @@ class MeshReader():
A helper class TemporaryMesh can help you do this.
"""

__mAssocMesh: bpy.types.Mesh | None ##< The binding mesh for this reader. None if this reader is invalid.
__mAssocMesh: bpy.types.Mesh ##< The binding mesh for this reader. None if this reader is invalid.

def __init__(self, assoc_mesh: bpy.types.Mesh):
self.__mAssocMesh = assoc_mesh
Expand Down Expand Up @@ -318,7 +318,7 @@ class MeshWriter():
then refer it to all face uv.
"""

__mAssocMesh: bpy.types.Mesh | None ##< The binding mesh for this writer. None if this writer is invalid.
__mAssocMesh: bpy.types.Mesh ##< The binding mesh for this writer. None if this writer is invalid.

__mVertexPos: array.array ##< Array item is float(f). Length must be an integer multiple of 3.
__mVertexNormal: array.array ##< Array item is float(f). Length must be an integer multiple of 3.
Expand Down

0 comments on commit 8588f09

Please sign in to comment.