Move props from 'Other' preferences tab to preferences #6733

To prevent users confusion since it's a general Blender UX to expect here general preferences, not per-blend file settings.
This commit is contained in:
Andrej730
2025-07-14 18:41:50 +05:00
parent d165cd2692
commit 2d3d747d49
6 changed files with 40 additions and 35 deletions
+2 -2
View File
@@ -187,7 +187,7 @@ class IfcStore:
if not os.path.isfile(path):
return
extension = path.split(".")[-1]
props = tool.Project.get_project_props()
prefs = tool.Blender.get_addon_preferences()
if extension.lower() == "ifczip":
with tempfile.TemporaryDirectory() as unzipped_path:
with zipfile.ZipFile(path, "r") as zip_ref:
@@ -197,7 +197,7 @@ class IfcStore:
return
elif extension.lower() == "ifcxml":
IfcStore.file = ifcopenshell.file(ifcopenshell.ifcopenshell_wrapper.parse_ifcxml(path))
elif props.should_stream:
elif prefs.should_stream:
IfcStore.file = ifcopenshell.open(path, should_stream=True)
else:
IfcStore.file = ifcopenshell.open(path)