Skip to content

Commit 554bc97

Browse files
added active flag
1 parent 71d3f7f commit 554bc97

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Binary file not shown.

scripts/FNS_HotkeyManager/HotkeyManagerExt.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ def to_row(self) -> List[str]:
5555
class HotkeyManagerExt:####
5656
'''#TODO: REFACTOR THIS!!! THERE IS A LOT OF DUPLICATED CODE!!!'''
5757
def __init__(self, ownerComp):
58-
if KILL:
59-
return
6058
CustomParHelper.Init(self, ownerComp, enable_properties=True, enable_callbacks=True)
59+
self._allHotkeys = tdu.Dependency([[None, None]])
60+
if KILL or not self.evalActive:
61+
return
6162

6263
self.ownerComp = ownerComp
6364

@@ -216,6 +217,8 @@ def AllHotkeyPars(self) -> List[tuple]:
216217

217218
self.logger.log(f"AllHotkeyPars: Found {comp_pars_found} COMP parameters", textport=True)
218219
self.logger.log(f"AllHotkeyPars: Total parameters found: {len(result)}", textport=True)
220+
self._allHotkeys.val = result
221+
self.ownerComp.op('parexec1').cook(force=True)
219222
return result
220223

221224
def onStart(self):

0 commit comments

Comments
 (0)