Cleanup: Compile warnings
This commit is contained in:
parent
94fb47e572
commit
f45470472f
|
@ -10648,7 +10648,7 @@ static int ui_handle_menu_event(bContext *C,
|
|||
menu->menuretval = UI_RETURN_OUT;
|
||||
}
|
||||
}
|
||||
else if (saferct && !BLI_rctf_isect_pt_v(&saferct->parent, event->xy)) {
|
||||
else if (saferct && !BLI_rctf_isect_pt(&saferct->parent, (float)event->xy[0], (float)event->xy[1])) {
|
||||
if (block->flag & UI_BLOCK_OUT_1) {
|
||||
menu->menuretval = UI_RETURN_OK;
|
||||
}
|
||||
|
|
|
@ -2979,7 +2979,7 @@ static int radial_control_modal(bContext *C, wmOperator *op, const wmEvent *even
|
|||
}
|
||||
}
|
||||
else {
|
||||
sub_v2_v2v2(delta, rc->initial_mouse, event->xy);
|
||||
sub_v2_v2v2_int(delta, rc->initial_mouse, event->xy);
|
||||
if (rc->zoom_prop) {
|
||||
RNA_property_float_get_array(&rc->zoom_ptr, rc->zoom_prop, zoom);
|
||||
delta[0] /= zoom[0];
|
||||
|
|
Loading…
Reference in New Issue