hound fix

This commit is contained in:
Kayla Man 2023-06-15 21:27:38 +08:00
parent b01424111a
commit 5bb476cfa4

View file

@ -27,13 +27,8 @@ def post_process():
import maya.utils
from qtpy import QtWidgets
# I'm not sure this would work, but it'd be the simplest trick to try
cmds.refresh(force=True)
# I suspect this might work
maya.utils.processIdleEvents()
# I suspect this one might work too but it's might be a hard to track whether it solves all cases (and whether the events were already submitted to Qt at that time this command starts to run) So I'd always try to avoid this when possible.
QtWidgets.QApplication.instance().processEvents()