Fix T59493: view selected in GP edit mode does not take obmat into account
This commit is contained in:
parent
9b80c70fc5
commit
6dcf788d12
Notes:
blender-bot
2023-02-14 04:26:28 +01:00
Referenced by issue #59493, Grease Pencil Edit Mode: Frame Selected command zooms to wrong area, if object is scaled
|
@ -2842,8 +2842,8 @@ static int viewselected_exec(bContext *C, wmOperator *op)
|
|||
CTX_DATA_END;
|
||||
|
||||
if ((ob_eval) && (ok)) {
|
||||
add_v3_v3(min, ob_eval->obmat[3]);
|
||||
add_v3_v3(max, ob_eval->obmat[3]);
|
||||
mul_m4_v3(ob_eval->obmat, min);
|
||||
mul_m4_v3(ob_eval->obmat, max);
|
||||
}
|
||||
}
|
||||
else if (ob_eval && (ob_eval->type == OB_GPENCIL)) {
|
||||
|
|
Loading…
Reference in New Issue