mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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 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
|
||||
|
||||
Reference in New Issue
Block a user