mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-06 20:36:27 +00:00
Black .
This commit is contained in:
@@ -31,7 +31,6 @@ from typing import Optional, Union, Literal, List
|
|||||||
|
|
||||||
|
|
||||||
class Polyline(bonsai.core.tool.Polyline):
|
class Polyline(bonsai.core.tool.Polyline):
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class PolylineUI:
|
class PolylineUI:
|
||||||
_D: str = ""
|
_D: str = ""
|
||||||
@@ -581,7 +580,7 @@ class Polyline(bonsai.core.tool.Polyline):
|
|||||||
measurement_data.area = polyline_data[0].area
|
measurement_data.area = polyline_data[0].area
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def use_transform_orientations(cls, value:Union[Vector, Matrix]) -> Union[Vector, Matrix]:
|
def use_transform_orientations(cls, value: Union[Vector, Matrix]) -> Union[Vector, Matrix]:
|
||||||
custom_orientation = bpy.context.scene.transform_orientation_slots[0].custom_orientation
|
custom_orientation = bpy.context.scene.transform_orientation_slots[0].custom_orientation
|
||||||
if custom_orientation:
|
if custom_orientation:
|
||||||
custom_matrix = custom_orientation.matrix
|
custom_matrix = custom_orientation.matrix
|
||||||
@@ -591,4 +590,3 @@ class Polyline(bonsai.core.tool.Polyline):
|
|||||||
result = custom_matrix.inverted() @ value
|
result = custom_matrix.inverted() @ value
|
||||||
return result
|
return result
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user