DRW: Fix use of uninitialized call->obmat.

This commit is contained in:
Clément Foucault 2018-02-22 19:45:20 +01:00
parent 03d1f08282
commit d4795cc5d1
1 changed files with 6 additions and 0 deletions

View File

@ -1031,6 +1031,9 @@ void DRW_shgroup_call_add(DRWShadingGroup *shgroup, Gwn_Batch *geom, float (*obm
if (obmat != NULL) {
copy_m4_m4(call->obmat, obmat);
}
else {
unit_m4(call->obmat);
}
call->geometry = geom;
call->ob_data = NULL;
@ -1075,6 +1078,9 @@ void DRW_shgroup_call_generate_add(
if (obmat != NULL) {
copy_m4_m4(call->obmat, obmat);
}
else {
unit_m4(call->obmat);
}
call->geometry_fn = geometry_fn;
call->user_data = user_data;