mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
Fix bug where setting north angle from a geolocated IFC was wrong
This commit is contained in:
@@ -4220,10 +4220,10 @@ class SetNorthOffset(bpy.types.Operator):
|
||||
bl_label = "Set North Offset"
|
||||
|
||||
def execute(self, context):
|
||||
context.scene.sun_pos_properties.north_offset = radians(
|
||||
context.scene.sun_pos_properties.north_offset = - radians(
|
||||
ifcopenshell.util.geolocation.xy2angle(
|
||||
float(bpy.context.scene.MapConversion.x_axis_ordinate),
|
||||
float(bpy.context.scene.MapConversion.x_axis_abscissa),
|
||||
float(bpy.context.scene.MapConversion.x_axis_ordinate),
|
||||
)
|
||||
)
|
||||
return {"FINISHED"}
|
||||
|
||||
Reference in New Issue
Block a user