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
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-10-26 02:16:28 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-10-26 02:16:28 +0300
commit32cc9ff037465e5522b1f6ee7139f6665975a106 (patch)
tree89f3a7350462461bf1bcf117af1878f925cd786c /source/blender/editors/space_view3d/space_view3d.c
parent40f59b5dad15eab01ddd326fbffd59846f398c34 (diff)
View3D Snap Cursor: don't limit the number of states
The benefit of a flat array in this case is small and limiting, so use a linklist.
Diffstat (limited to 'source/blender/editors/space_view3d/space_view3d.c')
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index d20a07d3517..ccad1b8b552 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -524,10 +524,6 @@ static void view3d_ob_drop_draw_activate(struct wmDropBox *drop, wmDrag *drag)
}
state = drop->draw_data = ED_view3d_cursor_snap_active();
- if (!state) {
- /* The maximum snap status stack value has been reached. */
- return;
- }
float dimensions[3] = {0.0f};
if (drag->type == WM_DRAG_ID) {