Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-12Cleanup: unify snap modes to geometry in a single flagGermano Cavalcante
This combination was being repeated in some places.
2021-11-11Cleanup: typo in function nameCampbell Barton
2021-11-09Fix T92939: Crash on drop when a curve is the active objectGermano Cavalcante
The active object was being set as the edited object even though it was not in edit mode.
2021-11-09View3D Snap Cursor: make the pool a little more restrictiveGermano Cavalcante
The snap cursor tagged overlapping regions to redrawn even though the cursor itself is not drawn.
2021-11-08Fix snap cursor not active even if gizmo is availableGermano Cavalcante
Error introduced in rB69d6222481b4 and partially fixed in rB24310441ddc8. When gizmo was turned on but the scene has more than one 3D viewport, one of them the snap cursor did not appear.
2021-11-02Fix snap cursor still active even when gizmo is not availableGermano Cavalcante
The snap cursor continued to appear even when the workspace is changed for example. So add the region to check in the cursor pool.
2021-10-29Fix snap cursor not working in regions with transparencyGermano Cavalcante
Use `BKE_area_find_region_type` instead of using the context region.
2021-10-28Cleanup: remove 'ED_view3d_cursor_snap_exit'Germano Cavalcante
The callers of `ED_view3d_cursor_snap_active` that must handle the snapping of the cursor. Forcing release at the end can hide leaks.
2021-10-28Fix memory leak in cursor snap deactivationGermano Cavalcante
Missed in rB32cc9ff03746
2021-10-27Cleanup: remove underscore prefix from variableCampbell Barton
Avoid using underscore prefix since these typically mean the variable shouldn't be accessed directly (it may be accessed from a macro, or memory on the stack which is assigned to a pointer). In this case a more meaningful name can be used for the argument that was shadowed.
2021-10-26View3D Snap Cursor: don't limit the number of statesGermano Cavalcante
The benefit of a flat array in this case is small and limiting, so use a linklist.
2021-10-26View3D Snap Cursor: sanitize and increase the maximum amount of statesGermano Cavalcante
3 is a small amount as each viewport creates a gizmo that creates its own state Now if the state is not created, the gizmos use the last state.
2021-10-25Assets: Snapping with visual feedback while draggingGermano Cavalcante
The drag and drop feature of objects in 3D View has been modified to include: - Snap the object being dragged. - Visual feedback through a box and the placement tool grid. Maniphest Tasks: T90198 Differential Revision: https://developer.blender.org/D12912
2021-10-21View3D Snap Cursor: Fix drawing state incorrectly resetGermano Cavalcante
The viewport was being changed, so it needs to be reset.
2021-10-21Cleanup: unused functuion warningsCampbell Barton
2021-10-21Cleanup: Set default snap cursor values during build timeGermano Cavalcante
2021-10-20Cleanup: silence WarningsGermano Cavalcante
Warning C4100 unreferenced formal parameter Warning C4242 conversion from 'int' to 'short', possible loss of data
2021-10-20Cleanup: unused parameters, `nullptr` instead of `NULL` in cpp code...Bastien Montagne
2021-10-20Cleanup: unused functionGermano Cavalcante
2021-10-20Fix crash when reloading with placement tool enabledGermano Cavalcante
Paint Cursors are already released at this stage.
2021-10-20View3D: Cursor Snap RefactorGermano Cavalcante
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-19Cleanup: remove unused member and rearrange functionGermano Cavalcante
2021-10-18Cleanup: use a common prefix in static functionsGermano Cavalcante
This helps identify where the function came from.
2021-10-18Fix 1 frame delayed orientation in Placement GizmoGermano Cavalcante
Error in {rB69d6222481b4}
2021-10-18Snap and Placement Gizmo RefactorGermano Cavalcante
Move most of the gizmo snap and placement code to `view_cursor_snap.c`. Simplify and extend the snap API. Differential Revision: https://developer.blender.org/D12868