black format after #5172

This commit is contained in:
Andrej730
2024-08-12 15:18:21 +05:00
parent bd3905fe76
commit b017ab7596
4 changed files with 13 additions and 14 deletions
@@ -70,8 +70,6 @@ class Scheduler:
elif infile.endswith("xlsx"): elif infile.endswith("xlsx"):
self.schedule_xlsx(infile, outfile) self.schedule_xlsx(infile, outfile)
def parse_css(self, infile): def parse_css(self, infile):
stylesheet_path = os.path.splitext(infile)[0] + ".css" stylesheet_path = os.path.splitext(infile)[0] + ".css"
if not os.path.exists(stylesheet_path): if not os.path.exists(stylesheet_path):
@@ -354,7 +354,9 @@ class WallPolylineDecorator:
last_point = Vector((0, 0, 0)) last_point = Vector((0, 0, 0))
if is_input_on: if is_input_on:
snap_vector = Vector((float(cls.input_panel["X"]), float(cls.input_panel["Y"]), default_container_elevation)) snap_vector = Vector(
(float(cls.input_panel["X"]), float(cls.input_panel["Y"]), default_container_elevation)
)
else: else:
snap_vector = Vector((snap_prop.x, snap_prop.y, default_container_elevation)) snap_vector = Vector((snap_prop.x, snap_prop.y, default_container_elevation))
@@ -105,6 +105,7 @@ class SnapMousePoint(PropertyGroup):
z: bpy.props.FloatProperty(name="Z") z: bpy.props.FloatProperty(name="Z")
snap_type: bpy.props.StringProperty(name="Snap Type") snap_type: bpy.props.StringProperty(name="Snap Type")
class PolylinePoint(PropertyGroup): class PolylinePoint(PropertyGroup):
x: bpy.props.FloatProperty(name="X") x: bpy.props.FloatProperty(name="X")
y: bpy.props.FloatProperty(name="Y") y: bpy.props.FloatProperty(name="Y")
@@ -397,9 +397,7 @@ class DrawPolylineWall(bpy.types.Operator):
# TODO Use ALT key to give the user the option to choose between the two results. # TODO Use ALT key to give the user the option to choose between the two results.
# TODO Create decorator for this # TODO Create decorator for this
try: try:
snap_point_vector = Vector( snap_point_vector = Vector((snap_point[0].x, snap_point[0].y, snap_point[0].z))
(snap_point[0].x, snap_point[0].y, snap_point[0].z)
)
snap_point_axis_1 = ( snap_point_axis_1 = (
Vector((snap_point[0].x + 1000, snap_point[0].y, default_container_elevation)), Vector((snap_point[0].x + 1000, snap_point[0].y, default_container_elevation)),
Vector((snap_point[0].x - 1000, snap_point[0].y, default_container_elevation)), Vector((snap_point[0].x - 1000, snap_point[0].y, default_container_elevation)),
@@ -519,8 +517,8 @@ class DrawPolylineWall(bpy.types.Operator):
dwg = DumbWallGenerator(relating_type).generate(True) dwg = DumbWallGenerator(relating_type).generate(True)
if dwg: if dwg:
for wall1, wall2 in zip(dwg, dwg[1:] + [dwg[0]]): for wall1, wall2 in zip(dwg, dwg[1:] + [dwg[0]]):
print(wall1['obj'], wall2['obj']) print(wall1["obj"], wall2["obj"])
DumbWallJoiner().join_V(wall1['obj'], wall2['obj']) DumbWallJoiner().join_V(wall1["obj"], wall2["obj"])
def modal(self, context, event): def modal(self, context, event):