Fix #7169. Bug where unit scale wasn't set for geometric operations on new projects.

This commit is contained in:
Dion Moult
2025-10-05 19:09:47 +11:00
parent 478f90c2d4
commit 0bb21fedae
2 changed files with 1 additions and 1 deletions
@@ -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
-1
View File
@@ -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: