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 <ideasman42@gmail.com>2021-01-14 02:58:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-14 02:58:19 +0300
commit0876829e7a774dc27c40977d26c36c2e8b77de02 (patch)
tree36f8fa96139726c1f57f4a7edf9c5e6afbee327e /source/blender/editors/transform
parentc13383da416c9c99d03058caaf66c736af0272cb (diff)
parent5804bf25bdfe2a29f8c763ab1015e89752baa195 (diff)
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform_snap_object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index 50b7c6d147b..b610369f82d 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -3026,7 +3026,11 @@ static short transform_snap_context_project_view3d_mixed_impl(
bool has_hit = false;
Object *ob = NULL;
- float loc[3], no[3], obmat[4][4];
+ float loc[3];
+ /* Not all snapping callbacks set the normal,
+ * initialize this since any hit copies both the `loc` and `no`. */
+ float no[3] = {0.0f, 0.0f, 0.0f};
+ float obmat[4][4];
int index = -1;
const ARegion *region = sctx->v3d_data.region;