Fix #890. New N/S/E/W location presets for creating sections, elevations, and RCPs. See #1153.

This commit is contained in:
Dion Moult
2022-02-04 08:14:36 +11:00
parent fca4d9dea0
commit 6a8292d24c
5 changed files with 106 additions and 8 deletions
@@ -72,12 +72,15 @@ class AddDrawing(bpy.types.Operator, Operator):
def _execute(self, context):
self.props = context.scene.DocProperties
hint = self.props.location_hint
if self.props.target_view in ["PLAN_VIEW", "REFLECTED_PLAN_VIEW"]:
hint = int(hint)
core.add_drawing(
tool.Ifc,
tool.Collector,
tool.Drawing,
target_view=self.props.target_view,
location_hint=int(self.props.location_hint),
location_hint=hint,
)