mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +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.Blender.register_toolbar()
|
||||
tool.Loader.set_unit_scale(ifcopenshell.util.unit.calculate_unit_scale(tool.Ifc.get()))
|
||||
|
||||
def rollback(self, data):
|
||||
IfcStore.file = None
|
||||
|
||||
@@ -155,7 +155,6 @@ class Raycast(bonsai.core.tool.Raycast):
|
||||
@classmethod
|
||||
def point_is_visible_in_clipping_plane(cls, vertex):
|
||||
normals = tool.Project.get_clipping_planes_normals()
|
||||
print("NORMALS", normals)
|
||||
if not normals:
|
||||
return True
|
||||
for normal in normals:
|
||||
|
||||
Reference in New Issue
Block a user