Skip to content

Commit

Permalink
Falling back to group node no longer supported
Browse files Browse the repository at this point in the history
  • Loading branch information
netpro2k committed Jun 9, 2020
1 parent 9caa32e commit b4d196d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gather_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def gather_collections_property(export_settings, blender_object, target, propert
@cached
def gather_lightmap_texture_info(blender_material, export_settings):
nodes = blender_material.node_tree.nodes
lightmap_node = next((n for n in nodes if isinstance(n, MozLightmapNode)), nodes.get("MOZ_lightmap"))
lightmap_node = next((n for n in nodes if isinstance(n, MozLightmapNode)), None)

texture = lightmap_node.inputs.get("Lightmap")
intensity = lightmap_node.intensity
Expand Down

0 comments on commit b4d196d

Please sign in to comment.