(Nodes) Display image name if any in the Cycles Image and Environment Texture node...
authorInes Almeida <britalmeida@gmail.com>
Mon, 12 Feb 2018 23:58:26 +0000 (00:58 +0100)
committerInes Almeida <britalmeida@gmail.com>
Mon, 12 Feb 2018 23:58:26 +0000 (00:58 +0100)
source/blender/nodes/shader/nodes/node_shader_tex_environment.c
source/blender/nodes/shader/nodes/node_shader_tex_image.c

index 2f8f95b0675f4fe751d856fa7ba1c8489947c6de..508abbf4db1c03d78e3e99486f6948877b72abac 100644 (file)
@@ -102,6 +102,7 @@ void register_node_type_sh_tex_environment(void)
        node_type_init(&ntype, node_shader_init_tex_environment);
        node_type_storage(&ntype, "NodeTexEnvironment", node_free_standard_storage, node_copy_standard_storage);
        node_type_gpu(&ntype, node_shader_gpu_tex_environment);
+       node_type_label(&ntype, node_image_label);
 
        nodeRegisterType(&ntype);
 }
index 71200dfe9d3e23a1e595f50a516f7263f3fe53cd..5f5cec615135a960aa4791a3a27d014f5eecdaea 100644 (file)
@@ -126,6 +126,7 @@ void register_node_type_sh_tex_image(void)
        node_type_init(&ntype, node_shader_init_tex_image);
        node_type_storage(&ntype, "NodeTexImage", node_free_standard_storage, node_copy_standard_storage);
        node_type_gpu(&ntype, node_shader_gpu_tex_image);
+       node_type_label(&ntype, node_image_label);
 
        nodeRegisterType(&ntype);
 }