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:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-10-21 22:29:56 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-10-21 22:30:17 +0300
commitbe171b295fc7defa451ef8eba8bc9dbf260c511a (patch)
tree3b7914c3d2de08648aa49f563027e528da8731d4 /source/blender/editors/armature
parentbe558d2d9775b3d9d1f84d316d2675a205932d92 (diff)
Cleanup: Use array utility for cursor events
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/pose_lib_2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/armature/pose_lib_2.c b/source/blender/editors/armature/pose_lib_2.c
index 328ca0265c1..002a4f74037 100644
--- a/source/blender/editors/armature/pose_lib_2.c
+++ b/source/blender/editors/armature/pose_lib_2.c
@@ -25,6 +25,7 @@
#include "MEM_guardedalloc.h"
+#include "BLI_math.h"
#include "BLI_string.h"
#include "BLT_translation.h"
@@ -379,8 +380,7 @@ static bool poselib_blend_init_data(bContext *C, wmOperator *op, const wmEvent *
if (pbd->release_confirm_info.use_release_confirm) {
BLI_assert(event != NULL);
- pbd->release_confirm_info.drag_start_xy[0] = event->xy[0];
- pbd->release_confirm_info.drag_start_xy[1] = event->xy[1];
+ copy_v2_v2_int(pbd->release_confirm_info.drag_start_xy, event->xy);
pbd->release_confirm_info.init_event_type = WM_userdef_event_type_from_keymap_type(
event->type);
}