Fix: Debug crash when translating more than 1024 verts

Caused by 1bcf3933a839a8388889db2135a7afb36f281aef
This is due to accessing value of uninitialized variable.

Pull Request: https://projects.blender.org/blender/blender/pulls/117442
This commit is contained in:
Pratik Borhade 2024-01-23 12:40:48 +01:00 committed by Pratik Borhade
parent 5a0b50e0a6
commit 71925e9157

@ -504,7 +504,7 @@ static void applyTranslationValue(TransInfo *t, const float vec[3])
}
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
float3 snap_source_local;
float3 snap_source_local(0);
if (rotate_mode != TRANSLATE_ROTATE_OFF) {
snap_source_local = t->tsnap.snap_source;
if (tc->use_local_mat) {