Skip to content

Commit

Permalink
Update usdrecord.py
Browse files Browse the repository at this point in the history
Set the QtCore.Qt.WA_DontShowOnScreen attribute on the glWidget window. This change prevent usdrecord from ever being displayed.

Fixes PixarAnimationStudios#1521
  • Loading branch information
Piotr Mintus committed May 19, 2021
1 parent d5d9576 commit 81ef5d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pxr/usdImaging/bin/usdrecord/usdrecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ def _SetupOpenGLContext(width=100, height=100):
try:
from PySide2 import QtOpenGL
from PySide2.QtWidgets import QApplication
from PySide2 import QtCore
except ImportError:
from PySide import QtOpenGL
from PySide.QtGui import QApplication
from PySide import QtCore

application = QApplication(sys.argv)

Expand All @@ -54,6 +56,7 @@ def _SetupOpenGLContext(width=100, height=100):

glWidget = QtOpenGL.QGLWidget(glFormat)
glWidget.setFixedSize(width, height)
glWidget.setAttribute(QtCore.Qt.WA_DontShowOnScreen)
glWidget.show()
glWidget.setHidden(True)

Expand Down

0 comments on commit 81ef5d3

Please sign in to comment.