Skip to content

Commit

Permalink
fix alpha_test link
Browse files Browse the repository at this point in the history
  • Loading branch information
ILoveAGoodCrisp committed Feb 3, 2025
1 parent e9c7e7b commit dc3a065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blender/addons/io_scene_foundry/managed_blam/shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ def _to_nodes_group(self, blender_material: bpy.types.Material):

if e_alpha_test.value > 0:
node_alpha_test = self._add_group_node(tree, nodes, f"alpha_test - {utils.game_str(e_alpha_test.name)}", Vector((final_node.location.x + 300, final_node.location.y)))
tree.links.new(input=node_alpha_test.inputs[0], output=final_node.outputs[0])
tree.links.new(input=node_alpha_test.inputs[1], output=final_node.outputs[0])
final_node = node_alpha_test

# Make the Output
Expand Down
2 changes: 1 addition & 1 deletion blender/addons/io_scene_foundry/tools/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def execute(self, context):
utils.transform_scene(context, scale_factor, from_x_rot, 'x', context.scene.nwo.forward_direction, objects=[existing_armature], actions=imported_animations)

if context.scene.nwo.asset_type in {'model', 'animation'}:
self.context.scene.nwo.active_animation_index = len(self.context.scene.nwo.animations) - 1
self.context.scene.nwo.active_animation_index = len(context.scene.nwo.animations) - 1

if 'scenario' in importer.extensions:
importer.tag_zone_set = self.tag_zone_set
Expand Down

0 comments on commit dc3a065

Please sign in to comment.