mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 03:44:34 +00:00
Remove dead code going back to a time immemorial hack
This commit is contained in:
@@ -225,15 +225,6 @@ def get_enum_items(data, prop_name, context=None):
|
|||||||
return items
|
return items
|
||||||
|
|
||||||
|
|
||||||
# hack to close popup
|
|
||||||
# https://blender.stackexchange.com/a/202576/130742
|
|
||||||
def close_operator_panel(event):
|
|
||||||
x, y = event.mouse_x, event.mouse_y
|
|
||||||
bpy.context.window.cursor_warp(10, 10)
|
|
||||||
move_back = lambda: bpy.context.window.cursor_warp(x, y)
|
|
||||||
bpy.app.timers.register(move_back, first_interval=0.01)
|
|
||||||
|
|
||||||
|
|
||||||
def convert_property_group_from_si(property_group, skip_props=()):
|
def convert_property_group_from_si(property_group, skip_props=()):
|
||||||
"""Method converts property group values from si to current ifc project units
|
"""Method converts property group values from si to current ifc project units
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import ifcopenshell
|
|||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
import blenderbim.bim.module.type.prop as type_prop
|
import blenderbim.bim.module.type.prop as type_prop
|
||||||
from blenderbim.bim.helper import prop_with_search, close_operator_panel
|
from blenderbim.bim.helper import prop_with_search
|
||||||
from bpy.types import WorkSpaceTool
|
from bpy.types import WorkSpaceTool
|
||||||
from blenderbim.bim.module.model.data import AuthoringData
|
from blenderbim.bim.module.model.data import AuthoringData
|
||||||
from blenderbim.bim.module.drawing.data import DecoratorData
|
from blenderbim.bim.module.drawing.data import DecoratorData
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import ifcopenshell.util.selector
|
|||||||
from ifcopenshell.util.selector import Selector
|
from ifcopenshell.util.selector import Selector
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from blenderbim.bim.ifc import IfcStore
|
||||||
from blenderbim.bim.helper import close_operator_panel
|
|
||||||
from blenderbim.bim.module.group import ui
|
from blenderbim.bim.module.group import ui
|
||||||
import blenderbim.core.search as core
|
import blenderbim.core.search as core
|
||||||
from itertools import cycle
|
from itertools import cycle
|
||||||
|
|||||||
Reference in New Issue
Block a user