Black format

This commit is contained in:
Bruno Perdigão
2024-10-19 11:15:30 -03:00
parent 97ed3bb0d5
commit b8d98b7512
2 changed files with 6 additions and 4 deletions
@@ -595,14 +595,17 @@ class PolylineDecorator:
wall_preview_data = self.get_wall_preview_data(context, self.relating_type)
if wall_preview_data:
self.draw_batch("LINES", wall_preview_data["verts"], decorator_color, wall_preview_data["edges"])
self.draw_batch("TRIS", wall_preview_data["verts"], transparent_color(decorator_color), wall_preview_data["tris"])
self.draw_batch(
"TRIS", wall_preview_data["verts"], transparent_color(decorator_color), wall_preview_data["tris"]
)
# Mesh type products
product_preview_data = self.get_product_preview_data(context, self.relating_type)
if product_preview_data:
self.draw_batch("LINES", product_preview_data["verts"], decorator_color, product_preview_data["edges"])
self.draw_batch("TRIS", product_preview_data["verts"], transparent_color(decorator_color), product_preview_data["tris"])
self.draw_batch(
"TRIS", product_preview_data["verts"], transparent_color(decorator_color), product_preview_data["tris"]
)
def draw_input_ui(self, context):
texts = {
-1
View File
@@ -303,7 +303,6 @@ class Polyline(bonsai.core.tool.Polyline):
return
@classmethod
def validate_input(cls, input_number, input_type):