Tags: IfcOpenShell/IfcOpenShell
Tags
bonsai: restore descriptive name for test_copy_with_new_geometry_copi… …ed_from_the_old The underlying bug (has_material_styles bypassing the tool layer) was already fixed by e764559, which added the required mock expectation here, but left the test under its quarantine placeholder name test_AAAAAAAAAAAA. Restore the real name now that it genuinely passes.
Allow drawing generation in background mode is_drawing_active() required an open VIEW_3D area purely as a poll() gate for bim.create_drawing, even though SVG generation is ifcopenshell.geom-based with no viewport dependency; skip that check when bpy.app.background is true, since a viewport is neither obtainable nor meaningful there. Interactive behaviour is unchanged. Generated with the assistance of an AI coding tool.
Apply link matrix when serialising linked drawings Linked IFC files were included in SVG output but without their world transform, causing geometry to appear at wrong coordinates. Falls back to no transform if the link cache is unavailable. Generated with the assistance of an AI coding tool.
Bonsai: don't wipe link query when reload_link is called without one bpy.ops.bim.reload_link(link_index=...) from a script skips invoke(), so self.query stayed at its empty default and execute() overwrote the link's stored query, reloading everything. Only update link.query when the property was explicitly set (dialog or script argument), and reload using the stored query. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Bonsai: persist link IFC query across reload Store the selector query used at Link IFC time on the Link PropertyGroup, restore it from the sidecar cache JSON on host IFC reopen, and forward it through LoadLink and ReloadLink so subsequent reloads replay the original filter instead of loading every element. ReloadLink now opens a small dialog pre-populated with the current query, allowing the user to edit it in place without unlink-and-relink. Also swap TestCalculateLinkMatrix off NamedTemporaryFile(delete=True) which held an exclusive Windows handle and blocked the code-under-test from reopening the sidecar path. Closes #8219 Generated with the assistance of an AI coding tool.
PreviousNext