Fix: String Offset Assert in Color Picker #117455
|
@ -216,7 +216,7 @@ static void ui_update_color_picker_buts_rgb(uiBut *from_but,
|
|||
const int col_len = SNPRINTF_RLEN(col, "%02X%02X%02X", UNPACK3_EX((uint), rgb_hex_uchar, ));
|
||||
memcpy(bt->poin, col, col_len + 1);
|
||||
}
|
||||
else if (bt->str[1] == ' ') {
|
||||
else if (bt->str.find(' ', 1) == 1) {
|
||||
if (bt->str[0] == 'R') {
|
||||
ui_but_value_set(bt, rgb_scene_linear[0]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue