From 1649f6ddeb0ef9fea84695d9c4c2e59998d7317f Mon Sep 17 00:00:00 2001 From: Rudolf Kolbe Date: Tue, 22 Oct 2024 21:41:49 +0200 Subject: [PATCH] MeshRendererExporter - import SkinnedMeshRenderer for instance check & fix environment typo --- UnityPy/export/MeshRendererExporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnityPy/export/MeshRendererExporter.py b/UnityPy/export/MeshRendererExporter.py index 55a52dc7..99d57e05 100644 --- a/UnityPy/export/MeshRendererExporter.py +++ b/UnityPy/export/MeshRendererExporter.py @@ -2,6 +2,7 @@ from typing import TYPE_CHECKING, List, Optional +from ..classes.generated import SkinnedMeshRenderer from .MeshExporter import export_mesh_obj if TYPE_CHECKING: @@ -11,7 +12,6 @@ MeshFilter, PPtr, Renderer, - SkinnedMeshRenderer, StaticBatchInfo, Texture2D, ) @@ -46,7 +46,7 @@ def get_mesh(meshR: Renderer) -> Optional[Mesh]: def export_mesh_renderer(renderer: Renderer, export_dir: str) -> None: - env = renderer.object_reader.assets_file.enviroment + env = renderer.object_reader.assets_file.environment env.fs.makedirs(export_dir, exist_ok=True) mesh = get_mesh(renderer) if not mesh: