Nodes: use better color for closures
Change colors according to #143056. Pull Request: https://projects.blender.org/blender/blender/pulls/143465
This commit is contained in:
@@ -755,7 +755,7 @@ const bTheme U_theme_default = {
|
||||
.node_zone_simulation = RGBA(0x66416233),
|
||||
.node_zone_repeat = RGBA(0x76512f33),
|
||||
.node_zone_foreach_geometry_element = RGBA(0x33527f33),
|
||||
.node_zone_closure = RGBA(0x527f3333),
|
||||
.node_zone_closure = RGBA(0x707F6633),
|
||||
.movie = RGBA(0x0f0f0fcc),
|
||||
.gp_vertex_size = 3,
|
||||
.gp_vertex = RGBA(0x97979700),
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
/* Blender file format version. */
|
||||
#define BLENDER_FILE_VERSION BLENDER_VERSION
|
||||
#define BLENDER_FILE_SUBVERSION 43
|
||||
#define BLENDER_FILE_SUBVERSION 44
|
||||
|
||||
/* Minimum Blender version that supports reading file written with the current
|
||||
* version. Older Blender versions will test this and cancel loading the file, showing a warning to
|
||||
|
||||
@@ -345,6 +345,10 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
|
||||
FROM_DEFAULT_V4_UCHAR(space_node.console_output);
|
||||
}
|
||||
|
||||
if (!USER_VERSION_ATLEAST(405, 44)) {
|
||||
FROM_DEFAULT_V4_UCHAR(space_node.node_zone_closure);
|
||||
}
|
||||
|
||||
/**
|
||||
* Always bump subversion in BKE_blender_version.h when adding versioning
|
||||
* code here, and wrap it inside a USER_VERSION_ATLEAST check.
|
||||
|
||||
@@ -969,7 +969,7 @@ static const float std_node_socket_colors[][4] = {
|
||||
{0.40, 0.40, 0.40, 1.0}, /* SOCK_MENU */
|
||||
{0.72, 0.20, 0.52, 1.0}, /* SOCK_MATRIX */
|
||||
{0.30, 0.50, 0.50, 1.0}, /* SOCK_BUNDLE */
|
||||
{0.50, 0.60, 0.40, 1.0}, /* SOCK_CLOSURE */
|
||||
{0.43, 0.50, 0.40, 1.0}, /* SOCK_CLOSURE */
|
||||
};
|
||||
|
||||
void std_node_socket_colors_get(int socket_type, float *r_color)
|
||||
|
||||
Reference in New Issue
Block a user