blender 5.0 - ensure the latest module is used for type checking

This commit is contained in:
Andrej730
2025-11-03 17:30:52 +05:00
parent 24bee01f01
commit 30b74ab09c
+2 -1
View File
@@ -20,8 +20,9 @@ import ifcopenshell
import ifcopenshell.util.pset
import bonsai.tool as tool
import bpy
from typing import TYPE_CHECKING
if bpy.app.version >= (5, 0, 0):
if TYPE_CHECKING or bpy.app.version >= (5, 0, 0):
import _bpy_restrict_state as bpy_restrict_state
else:
import bpy_restrict_state