mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
blender 5.0 - ensure the latest module is used for type checking
This commit is contained in:
@@ -20,8 +20,9 @@ import ifcopenshell
|
|||||||
import ifcopenshell.util.pset
|
import ifcopenshell.util.pset
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
import bpy
|
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
|
import _bpy_restrict_state as bpy_restrict_state
|
||||||
else:
|
else:
|
||||||
import bpy_restrict_state
|
import bpy_restrict_state
|
||||||
|
|||||||
Reference in New Issue
Block a user