mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Ping @brunoperdigao just in case.
This commit is contained in:
@@ -164,8 +164,9 @@ class DrawOccurrence(bpy.types.Operator, PolylineOperator, tool.Ifc.Operator):
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.type == "VIEW_3D"
|
return context.space_data.type == "VIEW_3D"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__()
|
bpy.types.Operator.__init__(self, *args, **kwargs)
|
||||||
|
PolylineOperator.__init__(self)
|
||||||
|
|
||||||
def create_occurrence(self, context, event):
|
def create_occurrence(self, context, event):
|
||||||
if not self.relating_type:
|
if not self.relating_type:
|
||||||
|
|||||||
@@ -1126,8 +1126,9 @@ class DrawPolylineProfile(bpy.types.Operator, PolylineOperator, tool.Ifc.Operato
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.type == "VIEW_3D"
|
return context.space_data.type == "VIEW_3D"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__()
|
bpy.types.Operator.__init__(self, *args, **kwargs)
|
||||||
|
PolylineOperator.__init__(self)
|
||||||
self.input_options = ["D", "A", "X", "Y", "Z"]
|
self.input_options = ["D", "A", "X", "Y", "Z"]
|
||||||
self.input_ui = tool.Polyline.create_input_ui(input_options=self.input_options)
|
self.input_ui = tool.Polyline.create_input_ui(input_options=self.input_options)
|
||||||
self.relating_type = None
|
self.relating_type = None
|
||||||
|
|||||||
@@ -864,7 +864,8 @@ class AddSlabFromWall(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.type == "VIEW_3D"
|
return context.space_data.type == "VIEW_3D"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
self.relating_type = None
|
self.relating_type = None
|
||||||
props = tool.Model.get_model_props()
|
props = tool.Model.get_model_props()
|
||||||
relating_type_id = props.relating_type_id
|
relating_type_id = props.relating_type_id
|
||||||
@@ -895,8 +896,9 @@ class DrawPolylineSlab(bpy.types.Operator, PolylineOperator, tool.Ifc.Operator):
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.type == "VIEW_3D"
|
return context.space_data.type == "VIEW_3D"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__()
|
bpy.types.Operator.__init__(self, *args, **kwargs)
|
||||||
|
PolylineOperator.__init__(self)
|
||||||
self.relating_type = None
|
self.relating_type = None
|
||||||
props = tool.Model.get_model_props()
|
props = tool.Model.get_model_props()
|
||||||
relating_type_id = props.relating_type_id
|
relating_type_id = props.relating_type_id
|
||||||
|
|||||||
@@ -404,7 +404,8 @@ class AddWallsFromSlab(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.type == "VIEW_3D"
|
return context.space_data.type == "VIEW_3D"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
self.relating_type = None
|
self.relating_type = None
|
||||||
props = tool.Model.get_model_props()
|
props = tool.Model.get_model_props()
|
||||||
relating_type_id = props.relating_type_id
|
relating_type_id = props.relating_type_id
|
||||||
@@ -437,8 +438,9 @@ class DrawPolylineWall(bpy.types.Operator, PolylineOperator, tool.Ifc.Operator):
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.type == "VIEW_3D"
|
return context.space_data.type == "VIEW_3D"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__()
|
bpy.types.Operator.__init__(self, *args, **kwargs)
|
||||||
|
PolylineOperator.__init__(self)
|
||||||
self.relating_type = None
|
self.relating_type = None
|
||||||
props = tool.Model.get_model_props()
|
props = tool.Model.get_model_props()
|
||||||
relating_type_id = props.relating_type_id
|
relating_type_id = props.relating_type_id
|
||||||
|
|||||||
@@ -2190,7 +2190,8 @@ class EnableCulling(bpy.types.Operator):
|
|||||||
bl_label = "Enable Culling"
|
bl_label = "Enable Culling"
|
||||||
bl_options = {"REGISTER"}
|
bl_options = {"REGISTER"}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
self.last_view_corners = None
|
self.last_view_corners = None
|
||||||
self.total_mousemoves = 0
|
self.total_mousemoves = 0
|
||||||
self.cullable_objects = []
|
self.cullable_objects = []
|
||||||
@@ -2296,7 +2297,8 @@ class RefreshClippingPlanes(bpy.types.Operator):
|
|||||||
bl_label = "Refresh Clipping Planes"
|
bl_label = "Refresh Clipping Planes"
|
||||||
bl_options = {"REGISTER"}
|
bl_options = {"REGISTER"}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
self.total_planes = 0
|
self.total_planes = 0
|
||||||
self.camera = None
|
self.camera = None
|
||||||
|
|
||||||
@@ -2605,8 +2607,9 @@ class MeasureTool(bpy.types.Operator, PolylineOperator):
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.type == "VIEW_3D"
|
return context.space_data.type == "VIEW_3D"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__()
|
bpy.types.Operator.__init__(self, *args, **kwargs)
|
||||||
|
PolylineOperator.__init__(self)
|
||||||
self.input_options = ["D", "A", "X", "Y", "Z"]
|
self.input_options = ["D", "A", "X", "Y", "Z"]
|
||||||
self.input_ui = tool.Polyline.create_input_ui(input_options=self.input_options)
|
self.input_ui = tool.Polyline.create_input_ui(input_options=self.input_options)
|
||||||
|
|
||||||
@@ -2699,8 +2702,9 @@ class MeasureFaceAreaTool(bpy.types.Operator, PolylineOperator):
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.type == "VIEW_3D"
|
return context.space_data.type == "VIEW_3D"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__()
|
bpy.types.Operator.__init__(self, *args, **kwargs)
|
||||||
|
PolylineOperator.__init__(self)
|
||||||
self.input_options = ["AREA"]
|
self.input_options = ["AREA"]
|
||||||
self.input_ui = tool.Polyline.create_input_ui(input_options=self.input_options)
|
self.input_ui = tool.Polyline.create_input_ui(input_options=self.input_options)
|
||||||
self.clicked_faces = []
|
self.clicked_faces = []
|
||||||
|
|||||||
Reference in New Issue
Block a user