From 09c4e7c0465181edcdc2ae358959ea251e6c79c6 Mon Sep 17 00:00:00 2001 From: "Jeison Yehuda Amihud (Blender Dumbass)" Date: Tue, 7 Mar 2023 15:38:09 +0000 Subject: [PATCH] Few Render Related Fixes. --- studio/studio_gtk.py | 11 +++++++++-- studio/studio_renderLayer.py | 12 +++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/studio/studio_gtk.py b/studio/studio_gtk.py index ff903c4..614f7c4 100644 --- a/studio/studio_gtk.py +++ b/studio/studio_gtk.py @@ -29,6 +29,8 @@ from studio import studio_analyticsLayer from studio import studio_scriptLayer from studio import studio_multiuserLayer +from studio import studio_dialogs + from troubleshooter import error_notify # UI modules @@ -270,11 +272,16 @@ def pmdrawing(pmdrawing, main_layer, win): win.current["frame"] += 1 - if win.current["frame"] == 10: + if win.current["frame"] == 10 and not win.render_runtime.get("to_render"): win.cur = "/set" win.url = "analytics" - + elif win.current["frame"] == 10: + def after(win, var): + pass + studio_dialogs.render(win, "current_renders", after) + + if not "scale" in win.settings: settings.write("scale", 1) # Writing to file win.settings = settings.load_all() diff --git a/studio/studio_renderLayer.py b/studio/studio_renderLayer.py index e180d43..ba7bf5f 100644 --- a/studio/studio_renderLayer.py +++ b/studio/studio_renderLayer.py @@ -163,14 +163,20 @@ def layer(win, call): frame_h = (win.current["h"]-200)/3 * (passed / longest) frame_h = max(frame_h, frame_w) - + + minus_w = 2 + round_r = int((frame_w-2)/2) + if frame_w < 5: + minus_w = -1 + round_r = 0 + UI_color.set(layer, win, "node_background") if win.render_runtime.get("current_frame", 0) == frame and win.render_runtime.get("to_render"): UI_color.set(layer, win, "progress_active") UI_elements.roundrect(layer, win, 580+(n*frame_w), 100+(win.current["h"]-200-frame_h), - frame_w-2, + frame_w-minus_w, frame_h, int((frame_w-2)/2)) @@ -289,7 +295,7 @@ def layer(win, call): UI_elements.roundrect(layer, win, - 310/2-20-40, + 310-20-40, win.current["h"]-140, 40, 40,