Skip to content

Commit

Permalink
MeshRendererExporter - import SkinnedMeshRenderer for instance check …
Browse files Browse the repository at this point in the history
…& fix environment typo
  • Loading branch information
K0lb3 committed Oct 22, 2024
1 parent 13e259f commit 1649f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnityPy/export/MeshRendererExporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -11,7 +12,6 @@
MeshFilter,
PPtr,
Renderer,
SkinnedMeshRenderer,
StaticBatchInfo,
Texture2D,
)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1649f6d

Please sign in to comment.