mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 21:58:46 +00:00
Fix old error setting up bcf camera in some cases (0d6cacd)
`cam_height` and `cam_width` were used in `setup_camera()` but never defined.
This commit is contained in:
@@ -1276,7 +1276,7 @@ class ActivateBcfViewpoint(bpy.types.Operator):
|
|||||||
if tool.Bcf.get_viewpoint_bitmaps(viewpoint):
|
if tool.Bcf.get_viewpoint_bitmaps(viewpoint):
|
||||||
self.create_bitmaps(bcfxml, viewpoint, topic)
|
self.create_bitmaps(bcfxml, viewpoint, topic)
|
||||||
|
|
||||||
self.setup_camera(viewpoint, obj, cam_aspect, context)
|
self.setup_camera(viewpoint, obj, cam_aspect, context, cam_height, cam_width)
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
def setup_camera(
|
def setup_camera(
|
||||||
@@ -1285,6 +1285,8 @@ class ActivateBcfViewpoint(bpy.types.Operator):
|
|||||||
obj: bpy.types.Object,
|
obj: bpy.types.Object,
|
||||||
cam_aspect: float,
|
cam_aspect: float,
|
||||||
context: bpy.types.Context,
|
context: bpy.types.Context,
|
||||||
|
cam_height: float,
|
||||||
|
cam_width: float,
|
||||||
) -> None:
|
) -> None:
|
||||||
assert isinstance(obj.data, bpy.types.Camera)
|
assert isinstance(obj.data, bpy.types.Camera)
|
||||||
if viewpoint.visualization_info.orthogonal_camera:
|
if viewpoint.visualization_info.orthogonal_camera:
|
||||||
|
|||||||
Reference in New Issue
Block a user