Fix more -Wmaybe-uninitialized warnings with target=release_debug

I have no idea why those don't get triggered in target=debug builds.

Fixes #37461.
This commit is contained in:
Rémi Verschelde
2020-03-31 13:50:25 +02:00
parent 047cdea7fa
commit 0a2fa4d892
5 changed files with 7 additions and 10 deletions

View File

@ -1031,7 +1031,7 @@ void Polygon2DEditor::_uv_draw() {
uvs = node->get_polygon();
}
const float *weight_r;
const float *weight_r = NULL;
if (uv_edit_mode[3]->is_pressed()) {
int bone_selected = -1;
@ -1044,7 +1044,6 @@ void Polygon2DEditor::_uv_draw() {
}
if (bone_selected != -1 && node->get_bone_weights(bone_selected).size() == uvs.size()) {
weight_r = node->get_bone_weights(bone_selected).ptr();
}
}