MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / undo_post

Function undo_post

src/bonsai/bonsai/bim/handler.py:248–254  ·  view source on GitHub ↗
(scene: bpy.types.Scene)

Source from the content-addressed store, hash-verified

246
247@persistent
248def undo_post(scene: bpy.types.Scene) -> None:
249 props = tool.Blender.get_bim_props()
250 if IfcStore.last_transaction != props.last_transaction:
251 IfcStore.last_transaction = props.last_transaction
252 IfcStore.undo(until_key=props.last_transaction)
253 refresh_ui_data()
254 tool.Ifc.rebuild_element_maps()
255
256
257@persistent

Callers

nothing calls this directly

Calls 4

refresh_ui_dataFunction · 0.85
get_bim_propsMethod · 0.80
rebuild_element_mapsMethod · 0.80
undoMethod · 0.45

Tested by

no test coverage detected