Skip to content

Commit

Permalink
Closes #15 - expose vertex alpha in node tree
Browse files Browse the repository at this point in the history
still needs to be linked to alpha mix shader, needs refactoring first
  • Loading branch information
HENDRIX-ZT2 committed May 5, 2020
1 parent da9a04d commit 9d58445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io_scene_nif/modules/nif_import/property/texture/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def connect_to_pass(self, b_node_pass, b_texture_node, texture_type="Detail"):

def connect_vertex_colors_to_pass(self, ):
# if ob.data.vertex_colors:
vcol = self.tree.nodes.new('ShaderNodeAttribute')
vcol.attribute_name = "RGBA"
vcol = self.tree.nodes.new('ShaderNodeVertexColor')
vcol.layer_name = "RGBA"
self.diffuse_pass = self.connect_to_pass(self.diffuse_pass, vcol, texture_type="Detail")

def connect_to_output(self):
Expand Down

0 comments on commit 9d58445

Please sign in to comment.