mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 11:46:33 +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"
|
bl_label = "Set North Offset"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
context.scene.sun_pos_properties.north_offset = radians(
|
context.scene.sun_pos_properties.north_offset = - radians(
|
||||||
ifcopenshell.util.geolocation.xy2angle(
|
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_abscissa),
|
||||||
|
float(bpy.context.scene.MapConversion.x_axis_ordinate),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|||||||
Reference in New Issue
Block a user