Blender 2.8 - 4.5 Support
This commit is contained in:
@ -1,9 +1,17 @@
|
||||
import importlib
|
||||
import sys
|
||||
import types
|
||||
import bpy
|
||||
|
||||
# This gets cleared if this package/the __init__ module is reloaded
|
||||
_module_cache: dict[str, types.ModuleType] = {}
|
||||
if bpy.app.version < (2, 92, 0):
|
||||
from typing import Dict
|
||||
ModuleCacheType = Dict[str, types.ModuleType]
|
||||
else:
|
||||
ModuleCacheType = dict[str, types.ModuleType]
|
||||
|
||||
_module_cache: ModuleCacheType = {}
|
||||
|
||||
|
||||
|
||||
def enable_reload(module_name: str):
|
||||
|
Reference in New Issue
Block a user