forked from bartvdbraak/blender
Fix minor issues from recent commits.
* Clone from layer UI not working * Get trash color when entering texture painting for the first time
This commit is contained in:
parent
029be6f4b5
commit
a93ec34ac8
@ -154,7 +154,7 @@ def brush_texpaint_common(panel, context, layout, brush, settings, projpaint=Fal
|
||||
if mat:
|
||||
col.label("Clone Slot")
|
||||
col.template_list("TEXTURE_UL_texpaintslots", "",
|
||||
mat, "texture_paint_slots",
|
||||
mat, "texture_paint_images",
|
||||
mat, "paint_clone_slot", rows=2)
|
||||
|
||||
else:
|
||||
|
@ -4849,7 +4849,7 @@ bool proj_paint_add_slot(bContext *C, Material *ma, wmOperator *op)
|
||||
mtex->mapto = type;
|
||||
|
||||
if (mtex->tex) {
|
||||
float color[4];
|
||||
float color[4] = {0.0f, 0.0f, 0.0f, 1.0f};
|
||||
char imagename[MAX_ID_NAME - 2] = "Material Diffuse Color";
|
||||
int width = 1024;
|
||||
int height = 1024;
|
||||
|
Loading…
Reference in New Issue
Block a user