yorikvanhavre / BIM_Workbench

A BIM Workbench for FreeCAD
363 stars 77 forks source link

Building Part: Activating (double clicking) is rotating visual grid but not snaps in opposite direction of rotation. #21

Open BrandonCline opened 5 years ago

BrandonCline commented 5 years ago

Setting Building Part as working plane with a rotation seems to be working as expected, but if you double click a Building Part with a rotation, the snap grid visually rotates in the negative direction (clockwise when from top view), but the snap grid itself is rotated as expected. leaving the visual grid misaligned with the snap grid.

Expected behavior: Setting the building part as active and working plane should leave the visual and snap grid with the same rotation. Changing to another working plane with part still active should not apply any rotation to visual grid.

Steps to Reproduce:

  1. With the grid set visible, and draft/grid settings "Use Grid" and "Always show grid" enabled. Set a working plane to Top.
  2. Create a building part (or floor/building).
  3. Set the rotation for the building part in placement to a non-orthogonal degree (e.g. 15).
  4. Double click on the building part to activate.
  5. Visual grid will show no change.
  6. Draw a line using grid snap, the snaps will be 15 degrees counter-clockwise off from the visual grid.
  7. Set a new working plane (e.g. Top), but leave building part active.
  8. Visual grid will be rotated counter-clockwise by degrees set on building part, but snap grid will match active working plane.

OS: Windows 10 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.16085 (Git) Build type: Release Branch: master Hash: 6323069cbbda5ac71dff073f15cc632d8a1f3ea3 Python version: 2.7.14 Qt version: 4.8.7 Coin version: 4.0.0a OCC version: 7.2.0 Locale: English/UnitedStates (en_US)

yorikvanhavre commented 5 years ago

Sorry for the delay in responding! I can confirm the issue indeed.. Will fix this ASAP