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:
authorCampbell Barton <campbell@blender.org>2022-03-09 09:18:31 +0300
committerCampbell Barton <campbell@blender.org>2022-03-09 09:18:31 +0300
commit1f9d85f56aace91e7958566c446e079b7f1c21c6 (patch)
tree6640369b9edc8ea6c9aebc6d24b077ef48837bda /source/blender/editors/transform
parent9416004092c5db4b16e8c3f241f3ae789c8789bc (diff)
Fix cursor drag failing to use click-start
Error in b8960267dd51f9108b3b49e9b762e6b4d35ae1dc, the flag was cleared before use.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform.c6
-rw-r--r--source/blender/editors/transform/transform_generics.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 9810f1cb6ad..bb80109d8c9 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -1706,12 +1706,6 @@ bool initTransform(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
t->launch_event = LEFTMOUSE;
}
- if (options & CTX_CURSOR) {
- /* Cursor should always use the drag start as the combination of click-drag to place & move
- * doesn't work well if the click location isn't used when transforming. */
- t->flag |= T_EVENT_DRAG_START;
- }
-
unit_m3(t->spacemtx);
initTransInfo(C, t, op, event);
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c
index 776229d66a0..3b9e2a982dc 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -206,6 +206,12 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
t->obedit_type = -1;
}
+ if (t->options & CTX_CURSOR) {
+ /* Cursor should always use the drag start as the combination of click-drag to place & move
+ * doesn't work well if the click location isn't used when transforming. */
+ t->flag |= T_EVENT_DRAG_START;
+ }
+
/* Many kinds of transform only use a single handle. */
if (t->data_container == NULL) {
t->data_container = MEM_callocN(sizeof(*t->data_container), __func__);