Fix: String Offset Assert in Color Picker #117455

Merged
Harley Acheson merged 1 commits from Harley/blender:PickerStringAssert into main 2024-01-23 17:40:05 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}