Texture Paint: sync adding a new texture slot to the Image Editor
When changing the texture paint slot index or activating a Texture Node, the texture displayed in the Image Editor changes accordingly. This patch syncs the Image Editor when a new texture paint slot was added, which currently is not the case. Also deduplicates some code.
This commit is contained in:
@@ -51,6 +51,7 @@ void ED_space_image_set(struct Main *bmain,
|
||||
struct SpaceImage *sima,
|
||||
struct Image *ima,
|
||||
bool automatic);
|
||||
void ED_space_image_sync(struct Main *bmain, Image *image, bool ignore_render_viewer);
|
||||
void ED_space_image_auto_set(const struct bContext *C, struct SpaceImage *sima);
|
||||
struct Mask *ED_space_image_get_mask(const struct SpaceImage *sima);
|
||||
void ED_space_image_set_mask(struct bContext *C, struct SpaceImage *sima, struct Mask *mask);
|
||||
|
||||
Reference in New Issue
Block a user