Skip to content

Commit

Permalink
changed update mode suggestion from @JamesDeAntonis #431
Browse files Browse the repository at this point in the history
  • Loading branch information
jchanvfx committed Oct 6, 2024
1 parent 305b15a commit 4b8a491
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions NodeGraphQt/widgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ def __init__(self, parent=None, undo_stack=None):
self.setRenderHint(QtGui.QPainter.Antialiasing, True)
self.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.setViewportUpdateMode(QtWidgets.QGraphicsView.FullViewportUpdate)
self.setViewportUpdateMode(QtWidgets.QGraphicsView.BoundingRectViewportUpdate)
self.setCacheMode(QtWidgets.QGraphicsView.CacheBackground)
self.setOptimizationFlag(
QtWidgets.QGraphicsView.DontAdjustForAntialiasing)
self.setOptimizationFlag(QtWidgets.QGraphicsView.DontAdjustForAntialiasing)

self.setAcceptDrops(True)
self.resize(850, 800)
Expand Down

0 comments on commit 4b8a491

Please sign in to comment.