Fix for image texture node in cycles. The button draw function has to use the image user pointer directly for property buttons, unlike the compositor image node which redefines image user properties on the node itself to ensure proper updates.
This commit is contained in:
@@ -1310,7 +1310,10 @@ static void node_shader_buts_tex_image(uiLayout *layout, bContext *C, PointerRNA
|
||||
uiTemplateID(layout, C, ptr, "image", NULL, "IMAGE_OT_open", NULL);
|
||||
uiItemR(layout, ptr, "color_space", 0, "", ICON_NONE);
|
||||
|
||||
node_buts_image_user(layout, C, ptr, &imaptr, &iuserptr);
|
||||
/* note: image user properties used directly here, unlike compositor image node,
|
||||
* which redefines them in the node struct RNA to get proper updates.
|
||||
*/
|
||||
node_buts_image_user(layout, C, &iuserptr, &imaptr, &iuserptr);
|
||||
}
|
||||
|
||||
static void node_shader_buts_tex_environment(uiLayout *layout, bContext *C, PointerRNA *ptr)
|
||||
|
Reference in New Issue
Block a user