DRW: Fix use of uninitialized call->obmat.
This commit is contained in:
parent
03d1f08282
commit
d4795cc5d1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue