Skip to content

Commit

Permalink
Fixed version number check
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiderguy-F committed Jul 12, 2024
1 parent be19052 commit 8d1fb00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/io_hubs_addon/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from io_scene_gltf2.blender.exp import gltf2_blender_gather_texture_info, gltf2_blender_export_keys
from io_scene_gltf2.blender.exp import gltf2_blender_image
from io_scene_gltf2.blender.exp.gltf2_blender_gather_cache import cached
if bpy.app.version >= (4, 0, 0):
if bpy.app.version >= (4, 1, 0):
from io_scene_gltf2.blender.exp.material import gltf2_blender_search_node_tree
from io_scene_gltf2.io.com import gltf2_io_extensions
from io_scene_gltf2.io.com import gltf2_io
Expand Down Expand Up @@ -368,7 +368,7 @@ def gather_lightmap_texture_info(blender_material, export_settings):
# TODO this assumes a single image directly connected to the socket
blender_image = texture_socket.links[0].from_node.image
texture = gather_texture(blender_image, export_settings)
socket = lightmap_node.inputs.get("Lightmap") if bpy.app.version < (4, 0, 0) \
socket = lightmap_node.inputs.get("Lightmap") if bpy.app.version < (4, 1, 0) \
else gltf2_blender_search_node_tree.NodeSocket(texture_socket, blender_material)
tex_attributes = gltf2_blender_gather_texture_info.__gather_texture_transform_and_tex_coord(
socket, export_settings)
Expand Down

0 comments on commit 8d1fb00

Please sign in to comment.