mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:50:59 +00:00
Fix #7169. Bug where unit scale wasn't set for geometric operations on new projects.
This commit is contained in:
@@ -155,6 +155,7 @@ class CreateProject(bpy.types.Operator):
|
|||||||
tool.Ifc, tool.Georeference, tool.Project, tool.Spatial, schema=props.export_schema, template=template
|
tool.Ifc, tool.Georeference, tool.Project, tool.Spatial, schema=props.export_schema, template=template
|
||||||
)
|
)
|
||||||
tool.Blender.register_toolbar()
|
tool.Blender.register_toolbar()
|
||||||
|
tool.Loader.set_unit_scale(ifcopenshell.util.unit.calculate_unit_scale(tool.Ifc.get()))
|
||||||
|
|
||||||
def rollback(self, data):
|
def rollback(self, data):
|
||||||
IfcStore.file = None
|
IfcStore.file = None
|
||||||
|
|||||||
@@ -155,7 +155,6 @@ class Raycast(bonsai.core.tool.Raycast):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def point_is_visible_in_clipping_plane(cls, vertex):
|
def point_is_visible_in_clipping_plane(cls, vertex):
|
||||||
normals = tool.Project.get_clipping_planes_normals()
|
normals = tool.Project.get_clipping_planes_normals()
|
||||||
print("NORMALS", normals)
|
|
||||||
if not normals:
|
if not normals:
|
||||||
return True
|
return True
|
||||||
for normal in normals:
|
for normal in normals:
|
||||||
|
|||||||
Reference in New Issue
Block a user