Few Render Related Fixes.
This commit is contained in:
parent
f64384ee92
commit
09c4e7c046
2 changed files with 18 additions and 5 deletions
|
@ -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,9 +272,14 @@ 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:
|
||||
|
|
|
@ -164,13 +164,19 @@ def layer(win, call):
|
|||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue