mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
imlib: Fix bug with copy argument updating original object.
This commit is contained in:
parent
bb8da452a3
commit
0e2e95f059
@ -1001,6 +1001,9 @@ static mp_obj_t py_image_to(pixformat_t pixfmt, const uint16_t *default_color_pa
|
||||
if (copy_obj) {
|
||||
if (mp_obj_is_integer(copy_obj)) {
|
||||
copy = mp_obj_get_int(copy_obj);
|
||||
if (copy) {
|
||||
arg_other = NULL;
|
||||
}
|
||||
} else {
|
||||
arg_other = py_image_cobj(copy_obj);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user