mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
black .
This commit is contained in:
@@ -2016,7 +2016,7 @@ class DecorationsHandler:
|
|||||||
return # Don't draw decorations in local view
|
return # Don't draw decorations in local view
|
||||||
|
|
||||||
# disable decorations when not in camera view
|
# disable decorations when not in camera view
|
||||||
if context.region_data.view_perspective != 'CAMERA':
|
if context.region_data.view_perspective != "CAMERA":
|
||||||
return
|
return
|
||||||
|
|
||||||
if not DrawingsData.is_loaded:
|
if not DrawingsData.is_loaded:
|
||||||
|
|||||||
@@ -181,7 +181,9 @@ class Raycast(bonsai.core.tool.Raycast):
|
|||||||
mouse_pos = event.mouse_region_x, event.mouse_region_y
|
mouse_pos = event.mouse_region_x, event.mouse_region_y
|
||||||
|
|
||||||
view_vector = tool.Cad.region_2d_to_vector_3d_np(region, rv3d, mouse_pos)
|
view_vector = tool.Cad.region_2d_to_vector_3d_np(region, rv3d, mouse_pos)
|
||||||
ray_origin = tool.Cad.region_2d_to_origin_3d_np(region, rv3d, mouse_pos, clamp=10) # TODO clamp is hardcoded but might be necessary to adapt
|
ray_origin = tool.Cad.region_2d_to_origin_3d_np(
|
||||||
|
region, rv3d, mouse_pos, clamp=10
|
||||||
|
) # TODO clamp is hardcoded but might be necessary to adapt
|
||||||
|
|
||||||
ray_target = ray_origin + view_vector
|
ray_target = ray_origin + view_vector
|
||||||
ray_direction = ray_target - ray_origin
|
ray_direction = ray_target - ray_origin
|
||||||
|
|||||||
Reference in New Issue
Block a user