From 4a0fdf2c81514760a5f4972a6fc587bb1b90024a Mon Sep 17 00:00:00 2001 From: Grant Kim <6302240+enpinion@users.noreply.github.com> Date: Mon, 5 Dec 2022 18:46:31 +0900 Subject: [PATCH] Use "Color" type for "InvertY" group --- .../modules/nif_import/property/nodes_wrapper/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_scene_niftools/modules/nif_import/property/nodes_wrapper/__init__.py b/io_scene_niftools/modules/nif_import/property/nodes_wrapper/__init__.py index 55452690b..d262a4d72 100644 --- a/io_scene_niftools/modules/nif_import/property/nodes_wrapper/__init__.py +++ b/io_scene_niftools/modules/nif_import/property/nodes_wrapper/__init__.py @@ -300,9 +300,9 @@ def link_normal_node(self, b_texture_node): group_nodes = node_group.nodes # add the in/output nodes input_node = group_nodes.new('NodeGroupInput') - node_group.inputs.new('NodeSocketImage', "Input") + node_group.inputs.new('NodeSocketColor', "Input") output_node = group_nodes.new('NodeGroupOutput') - node_group.outputs.new('NodeSocketImage', "Output") + node_group.outputs.new('NodeSocketColor', "Output") # create the converting nodes separate_node = group_nodes.new("ShaderNodeSeparateRGB") invert_node = group_nodes.new("ShaderNodeInvert")