mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 02:10:59 +00:00
fix mistake in de80e416c
This commit is contained in:
@@ -1019,7 +1019,6 @@ class AddBoundary(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
# geometry = ifcopenshell.geom.create_shape(settings, body)
|
# geometry = ifcopenshell.geom.create_shape(settings, body)
|
||||||
shape = ifcopenshell.geom.create_shape(settings, element)
|
shape = ifcopenshell.geom.create_shape(settings, element)
|
||||||
mat = Matrix(ifcopenshell.util.shape.get_shape_matrix(shape))
|
mat = Matrix(ifcopenshell.util.shape.get_shape_matrix(shape))
|
||||||
mat.translation = (0, 0, 0)
|
|
||||||
verts = [space_matrix_i @ mat @ Vector(v) for v in ifcopenshell.util.shape.get_vertices(shape.geometry)]
|
verts = [space_matrix_i @ mat @ Vector(v) for v in ifcopenshell.util.shape.get_vertices(shape.geometry)]
|
||||||
faces = ifcopenshell.util.shape.get_faces(shape.geometry)
|
faces = ifcopenshell.util.shape.get_faces(shape.geometry)
|
||||||
polygons = []
|
polygons = []
|
||||||
|
|||||||
@@ -1471,7 +1471,6 @@ class LoadLinkedProject(bpy.types.Operator):
|
|||||||
material_ids = shape.geometry.material_ids
|
material_ids = shape.geometry.material_ids
|
||||||
|
|
||||||
mat = ifcopenshell.util.shape.get_shape_matrix(shape)
|
mat = ifcopenshell.util.shape.get_shape_matrix(shape)
|
||||||
mat[:3, 3] = (0, 0, 0)
|
|
||||||
|
|
||||||
mesh = self.meshes.get(shape.geometry.id, None)
|
mesh = self.meshes.get(shape.geometry.id, None)
|
||||||
if not mesh:
|
if not mesh:
|
||||||
|
|||||||
@@ -696,7 +696,6 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
tool.Ifc.link(drawing, obj)
|
tool.Ifc.link(drawing, obj)
|
||||||
|
|
||||||
mat = Matrix(ifcopenshell.util.shape.get_shape_matrix(shape))
|
mat = Matrix(ifcopenshell.util.shape.get_shape_matrix(shape))
|
||||||
mat.translation = (0, 0, 0)
|
|
||||||
obj.matrix_world = mat
|
obj.matrix_world = mat
|
||||||
|
|
||||||
if cls.get_drawing_target_view(drawing) == "REFLECTED_PLAN_VIEW":
|
if cls.get_drawing_target_view(drawing) == "REFLECTED_PLAN_VIEW":
|
||||||
|
|||||||
Reference in New Issue
Block a user