brokkr_kitbash.freeze and thaw: a finished cut object keeps its evaluated mesh and stops paying for every live Boolean; apply is cut (cut kit-freeze) #37
Loading…
Reference in a new issue
No description provided.
Delete branch "nibu/kit-freeze"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cut
aetheria-release:cut_spec:cut-kit-freeze.r1, branched from main at5b56579(after PRs 32, 33 and 35).What changes
brokkr_kitbash.apply,kit_bakedand report'sbakedkey are deleted (first commit).brokkr_kitbash.freeze: any mesh object with modifiers. Its mesh becomes its evaluated mesh, its live mesh is held by the ID-pointer propertykit_frozen, and every modifier stays in the stack with its collections, turned off.brokkr_kitbash.thaw: the one undo. Evaluates nothing itself.live()refuses a frozen object inset_params,boolean,cut,cut_many,ribs, ashellrebuild, ahoserebuild andfreeze.bakedbecomesfrozen.Why
Blender 5.3 re-evaluates every live collection Boolean in the scene after any datablock removal, any
hide_viewportchange and anynew_from_object. A frozen object costs nothing there.Measured (Starfire, Blender 5.3, other agents loading the machine: read the ratios)
f444bbf, this branch merged into it locally, the freeze action called at the end of each component), three interleaved pairs, rest against freeze: 168.0/32.5, 156.4/46.4, 212.5/37.2 s. Ratios 5.2, 3.4, 5.7; ratio of medians 4.5. Boolean evaluations 1035 against 139 in every run. The map read 251.7/51.2 = 4.9.Verification
py -3 -m unittest discover -s surfaces/blender/tests: 561 tests OK (20 skipped).BLENDER_USER_*:kitbash_assembly.py130 checks,kitbash_shell.py91,kitbash.pyexit 0. The three result files are refreshed.Where this differs from the spec
hose's rebuild branch also callslive(): it landed after the spec's base and rewrites its object's mesh as shell's rebuild does. Only the static check covers it; no live check freezes a hose.freezeevaluates throughevaluablealone, soevaluated_of(appears in boolean and ribs only.freezeaccepts a mesh another object shares (apply refused it): the swap changes only this object, and the duplicate keeps the live mesh.Not done
mechlib.rest/wakeare not moved onto freeze: follow_upnewmechs-rest-to-freeze.kitbash_ribs,kitbash_faceted,kitbash_hoseandkitbash_poselive tests were not rerun.OT_applystill matchestests/fixtures/brokkr_host_fixture(BROKKR_HOST_FIXTURE_OT_apply), another add-on's fixture.🤖 Generated with Claude Code
Answers verdict aetheria-release:verdict:cut-kit-freeze.s1. - setObjectCustomProperty refuses any name starting with kit_: those properties are brokkr_kitbash's state, so kit_frozen keeps freeze and thaw as its only writers. - freeze gives the held live mesh a fake user (marked kit_kept, taken back by the last thaw), so a purge cannot delete it when kit_frozen is overwritten by hand; thaw's refusal then names the kept meshes no frozen object holds. - part_report: faces is the live mesh's count, frozen or not; a frozen part adds evaluated {faces}; a frozen part with a modifier shown again reports dirty (the modifiers) and frozen false. freeze reports faces (live) and evaluated {faces, volume, nonManifoldEdges}. - exportGltf with applyModifiers refuses an export that includes a frozen object with a modifier shown. - Live pins: kitbash_hose freezes a hose and its rebuild is refused; kitbash_assembly pins the setter refusal, the purge with an overwritten kit_frozen, the dirty report and the export refusal. - kitbash_assembly and kitbash_faceted print their wall times and keep them out of the result files. - docs/kitbash.md: the KESTREL wall-time ratio as a range (about 2.7 to 5.7), the Boolean evaluation counts (1035 against 139) as the stable measure. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>d60be15af2to7845b13ed0