Skip to content

Commit

Permalink
small mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Sep 30, 2024
1 parent 5779a87 commit 4f2d746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions fast64_internal/f3d/glTF/f3d_gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,7 @@ def gather_mesh_hook(blender_mesh: Mesh, *args):
import io_scene_gltf2.blender.exp.gltf2_blender_gather_mesh as gather_mesh_owner # pylint: disable=import-error

gather_mesh_owner.gather_mesh = prefix_function(gather_mesh_owner.gather_mesh, gather_mesh_hook)
del gather_mesh_owner

# 3.2 hack

Expand Down Expand Up @@ -1422,3 +1423,5 @@ def post__gather_colors(results, blender_primitive, _export_settings):
extract_primitives_owner.extract_primitives, extract_primitives_fast64
)
__gather_colors_owner.__gather_colors = suffix_function(__gather_colors_owner.__gather_colors, post__gather_colors)
del extract_primitives_owner
del __gather_colors_owner
2 changes: 1 addition & 1 deletion fast64_internal/gltf_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __get_mime_type_of_image(name: str, export_settings: dict):
def get_gltf_image_from_blender_image(blender_image_name: str, export_settings: dict):
image_data = ExportImage.from_blender_image(bpy.data.images[blender_image_name])

if bpy.app.version > (4, 1, 0):
if bpy.app.version > (4, 1, 1):
name = __gather_name(image_data, None, export_settings)
else:
name = __gather_name(image_data, export_settings)
Expand Down

0 comments on commit 4f2d746

Please sign in to comment.