mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Load CJIO on execution instead of initialisation
This commit is contained in:
committed by
GitHub
parent
6c998e0b8a
commit
9355969110
@@ -18,9 +18,6 @@
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from bpy.types import Operator
|
from bpy.types import Operator
|
||||||
from cjio import cityjson
|
|
||||||
from ifccityjson.cityjson2ifc.cityjson2ifc import Cityjson2ifc
|
|
||||||
|
|
||||||
|
|
||||||
class BIM_OT_cityjson2ifc(Operator):
|
class BIM_OT_cityjson2ifc(Operator):
|
||||||
bl_idname = "bim.convert_cityjson2ifc"
|
bl_idname = "bim.convert_cityjson2ifc"
|
||||||
@@ -28,6 +25,9 @@ class BIM_OT_cityjson2ifc(Operator):
|
|||||||
bl_context = "scene"
|
bl_context = "scene"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
from cjio import cityjson
|
||||||
|
from ifccityjson.cityjson2ifc.cityjson2ifc import Cityjson2ifc
|
||||||
|
|
||||||
props = context.scene.ifccityjson_properties
|
props = context.scene.ifccityjson_properties
|
||||||
city_model = cityjson.load(props.input, transform=False)
|
city_model = cityjson.load(props.input, transform=False)
|
||||||
data = {
|
data = {
|
||||||
@@ -52,6 +52,8 @@ class BIM_OT_find_cityjson_lod(Operator):
|
|||||||
bl_context = "scene"
|
bl_context = "scene"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
from cjio import cityjson
|
||||||
|
|
||||||
props = context.scene.ifccityjson_properties
|
props = context.scene.ifccityjson_properties
|
||||||
city_model = cityjson.load(props.input)
|
city_model = cityjson.load(props.input)
|
||||||
lods = set()
|
lods = set()
|
||||||
|
|||||||
Reference in New Issue
Block a user