Skip to content

Commit

Permalink
feat: only during development, touch sys.module
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed Jun 22, 2024
1 parent de9243f commit 1651343
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/io_scene_vrm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ def register() -> None:

def unregister() -> None:
# Lazy import to minimize initialization before blender version checking.
import os

from . import registration

registration.unregister()
cleanse_modules()

if os.getenv("BLENDER_VRM_DEVEMOPMENT_MODE") == "yes":
cleanse_modules()


def raise_error_if_too_old_blender() -> None:
Expand Down

0 comments on commit 1651343

Please sign in to comment.