Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Harmonikater
BF2-3dsMax-Tools
Commits
fd9a0c8b
Commit
fd9a0c8b
authored
Nov 16, 2020
by
Harmonikater
Browse files
Add timestamp to objects lm progress
parent
81e73000
Pipeline
#5491
passed with stage
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/bf2/Statics/rendLightmaps.ms
View file @
fd9a0c8b
...
...
@@ -362,10 +362,18 @@ fn bf2LightmapsRenderBatch outDir_1 sceneRoots:undefined multiplePCs:#(1,1) show
local timeLeft = totalTimeEst - secondsElapsed
local hours = ((timeStamp() / 3600000) as integer)
local minutes = ((timeStamp() / 60000) as integer)
minutes = minutes - hours*60
local prettyTime = ""
if hours < 10 do prettyTime = prettyTime + "0"
prettyTime = prettyTime + (hours as string) + ":"
if minutes < 10 do prettyTime = prettyTime + "0"
prettyTime = prettyTime + (minutes as string)
if timeLeft > 120 then
LM_log (" " + (((timeLeft / 60) as integer) as string) + " mins remaining")
LM_log (" " +
prettyTime + " " +
(((timeLeft / 60) as integer) as string) + " mins remaining")
else
LM_log (" " + ((timeLeft as integer) as string) + " seconds remaining")
LM_log (" " +
prettyTime + " " +
((timeLeft as integer) as string) + " seconds remaining")
)
)
if g_bf2lightmap_progress != -1 then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment