fix: remove parent=mainQtWindow — makes widget a child, not a standalone window (causes black-bar corruption)
This commit is contained in:
@@ -149,8 +149,9 @@ class HermesBridgeWindow(QtWidgets.QWidget):
|
|||||||
QtCore.QTimer.singleShot(2000,
|
QtCore.QTimer.singleShot(2000,
|
||||||
lambda: self.btn_copy.setText("Copy"))
|
lambda: self.btn_copy.setText("Copy"))
|
||||||
|
|
||||||
# ── Per SideFX docs: parent to main window to keep alive ──
|
# ── Store on hou.session to prevent GC (per SideFX docs) ──
|
||||||
win = HermesBridgeWindow(hou.ui.mainQtWindow())
|
win = HermesBridgeWindow()
|
||||||
|
hou.session.hermes_bridge_win = win
|
||||||
win.show()
|
win.show()
|
||||||
]]></script>
|
]]></script>
|
||||||
</tool>
|
</tool>
|
||||||
|
|||||||
Reference in New Issue
Block a user