Cleanup: Fix compile warnings
This commit is contained in:
parent
550ebc5c8f
commit
fdd282021a
|
@ -869,7 +869,8 @@ void uiTemplateImage(uiLayout *layout,
|
|||
uiItemS(col);
|
||||
|
||||
uiItemR(col, &imaptr, "generated_type", UI_ITEM_R_EXPAND, IFACE_("Type"), ICON_NONE);
|
||||
if (ima->gen_type == IMA_GENTYPE_BLANK) {
|
||||
ImageTile *base_tile = BKE_image_get_tile(ima, 0);
|
||||
if (base_tile->gen_type == IMA_GENTYPE_BLANK) {
|
||||
uiItemR(col, &imaptr, "generated_color", 0, NULL, ICON_NONE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -454,7 +454,6 @@ struct UndoImageBuf {
|
|||
struct {
|
||||
short source;
|
||||
bool use_float;
|
||||
char gen_type;
|
||||
} image_state;
|
||||
};
|
||||
|
||||
|
@ -473,7 +472,6 @@ static UndoImageBuf *ubuf_from_image_no_tiles(Image *image, const ImBuf *ibuf)
|
|||
MEM_callocN(sizeof(*ubuf->tiles) * ubuf->tiles_len, __func__));
|
||||
|
||||
BLI_strncpy(ubuf->ibuf_name, ibuf->name, sizeof(ubuf->ibuf_name));
|
||||
ubuf->image_state.gen_type = image->gen_type;
|
||||
ubuf->image_state.source = image->source;
|
||||
ubuf->image_state.use_float = ibuf->rect_float != nullptr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue