Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2928
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Sergey Sharybin (sergey)
on May 9 2022, 10:45 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 872dfe68793..f5a74f9de9a 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -6600,12 +6600,16 @@ static bool proj_paint_add_slot(bContext *C, wmOperator *op)
}
case PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE: {
new_node = nodeAddStaticNode(C, ntree, SH_NODE_ATTRIBUTE);
- if (layer = proj_paint_color_attribute_create(op, ob)) {
+ if ((layer = proj_paint_color_attribute_create(op, ob))) {
BLI_strncpy_utf8(
- &((NodeShaderAttribute *)new_node->storage)->name, &layer->name, MAX_NAME);
+ ((NodeShaderAttribute *)new_node->storage)->name, layer->name, MAX_NAME);
}
break;
}
+ case PAINT_CANVAS_SOURCE_MATERIAL:
+ // XXX: What is supposed to happen here? `new_node` is not initialied!
+ new_node = NULL;
+ break;
}
nodeSetActive(ntree, new_node);
@@ -6783,6 +6787,9 @@ static void texture_paint_add_texture_paint_slot_ui(bContext *C, wmOperator *op)
uiItemR(layout, op->ptr, "domain", UI_ITEM_R_EXPAND, NULL, ICON_NONE);
uiItemR(layout, op->ptr, "data_type", UI_ITEM_R_EXPAND, NULL, ICON_NONE);
break;
+ case PAINT_CANVAS_SOURCE_MATERIAL:
+ // XXX: What is supposed to happen here?
+ break;
}
uiItemR(layout, op->ptr, "color", 0, NULL, ICON_NONE);
Event Timeline
Sergey Sharybin (sergey)
created this paste.
May 9 2022, 10:45 AM
Sergey Sharybin (sergey)
created this object with edit policy "Administrators".
Log In to Comment