mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
@@ -303,6 +303,7 @@ class BrowseExternalStyle(bpy.types.Operator, ImportHelper):
|
|||||||
|
|
||||||
def get_data_blocks(self, context):
|
def get_data_blocks(self, context):
|
||||||
l = [("", "", "")]
|
l = [("", "", "")]
|
||||||
|
BrowseExternalStyle.data_block_items = l
|
||||||
if self.data_block_type != "0" and os.path.exists(self.filepath) and self.filepath.endswith(".blend"):
|
if self.data_block_type != "0" and os.path.exists(self.filepath) and self.filepath.endswith(".blend"):
|
||||||
with bpy.data.libraries.load(self.filepath) as (data_from, data_to):
|
with bpy.data.libraries.load(self.filepath) as (data_from, data_to):
|
||||||
objects = getattr(data_from, self.data_block_type)
|
objects = getattr(data_from, self.data_block_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user