Dumb slabs now are marked as parametric and inherit thickness from the slab type

This commit is contained in:
Dion Moult
2021-05-29 14:59:02 +10:00
parent 0533a00631
commit 62b297757e
4 changed files with 73 additions and 54 deletions
@@ -60,8 +60,8 @@ def remove_pre_listener(callback, usecase_path=""):
for fun in callbacks:
if fun == callback:
pre_listeners[listener_key].remove(callback)
def remove_post_listener(callback, usecase_path=""):
for listener_key, callbacks in post_listeners.items():
if not listener_key.endswith(usecase_path):
@@ -69,8 +69,8 @@ def remove_post_listener(callback, usecase_path=""):
for fun in callbacks:
if fun == callback:
post_listeners[listener_key].remove(callback)
def remove_all_listeners():
registered_ifcs.clear()
pre_listeners.clear()