aboutsummaryrefslogtreecommitdiff
path: root/src/preview_thread.py
diff options
context:
space:
mode:
authortassaron2017-08-03 18:08:49 -0400
committertassaron2017-08-03 18:08:49 -0400
commitae8a547b77a618c793929701f9c1fa72d3300110 (patch)
tree4c2d0038798e5cb3f5b52dd32c7310c03880fe88 /src/preview_thread.py
parent219e846984bb10e9674432fa7aeac4157635c743 (diff)
max spinbox vals scale relatively & less errors when spamming res change
w/h attrs are locked during render so preview thread always get correctly-sized frame
Diffstat (limited to 'src/preview_thread.py')
-rw-r--r--src/preview_thread.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preview_thread.py b/src/preview_thread.py
index 0a6a856..bb22f0c 100644
--- a/src/preview_thread.py
+++ b/src/preview_thread.py
@@ -59,7 +59,9 @@ class Worker(QtCore.QObject):
components = nextPreviewInformation["components"]
for component in reversed(components):
try:
+ component.lockSize(width, height)
newFrame = component.previewRender()
+ component.unlockSize()
frame = Image.alpha_composite(
frame, newFrame
)