This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender
Germano Cavalcante 9001dd7f29 View3D: Cursor Snap Refactor
Make the snap system consistent with the placement tool and leak-safe.

**Changes:**
- Store `SnapCursorDataIntern` in a `static` variable;
- Initialize (lazily) `SnapCursorDataIntern` only once (for the keymap).
- Move setup members of `V3DSnapCursorData` to a new struct `V3DSnapCursorState`
- Merge `ED_view3d_cursor_snap_activate_point` and `ED_view3d_cursor_snap_activate_plane` into `state = ED_view3d_cursor_snap_active()`
- Merge `ED_view3d_cursor_snap_deactivate_point` and `ED_view3d_cursor_snap_deactivate_plane` into `ED_view3d_cursor_snap_deactive(state)`
- Be sure to free the snap context when closing via `ED_view3d_cursor_snap_exit`
- Use RNA properties callbacks to update the properties of the `"Add Primitive Object"` operator
2021-10-20 08:28:58 -03:00
..
2021-10-20 11:16:43 +11:00
2021-10-06 14:54:05 +11:00
2021-10-20 11:16:43 +11:00
2021-10-04 13:15:15 +11:00
2021-10-20 11:16:43 +11:00
2021-10-20 08:28:58 -03:00
2021-10-12 17:55:02 +11:00
2021-10-20 09:17:46 +11:00
2021-10-20 09:19:21 +11:00
2021-10-03 12:13:29 +11:00
2021-10-20 11:16:43 +11:00
2021-10-20 11:16:43 +11:00
2021-10-20 11:16:43 +11:00
2021-10-20 11:16:43 +11:00
2021-10-20 11:16:43 +11:00
2021-10-20 11:16:43 +11:00
2021-10-06 14:54:05 +11:00