Skip to content

Commit

Permalink
Release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pudingus committed Jul 31, 2021
1 parent 0e99d34 commit 73301f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/max4ds/glow.ms
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ category:"4ds Tools"

if map != undefined and classof map == Bitmaptexture then (
--try (bmp = map.bitmap) catch() --texture map could have no filename set
local scl = GetUIScaleFactor()
local maxver = (maxVersion())[1]
if maxVer >= 19000 then local scl = GetUIScaleFactor()
else local scl = 1
bmp = renderMap map size:[40*scl,40*scl] filter:true
)
)
Expand Down
5 changes: 3 additions & 2 deletions scripts/max4ds/init.ms
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
local set_heapsize = 64 * 1024 * 1024 --64 MiB
if heapsize < set_heapsize then heapsize = set_heapsize

global Max4ds_version = "v0.8.0-preview"
global Max4ds_scriptsPath = getFilenamePath (getThisScriptFilename())
global Max4ds_version = "v0.8.0"
--global Max4ds_scriptsPath = getFilenamePath (getThisScriptFilename())

fn DisableScript file = (
if doesFileExist file then (
Expand All @@ -13,6 +13,7 @@
)
)

--disable old 0.4.x scripts
local name = "startup_mafia_4ds.ms"
local file = (getdir #userStartupScripts) + "\\" + name
local file2 = (getdir #startupScripts) + "\\" + name
Expand Down

0 comments on commit 73301f5

Please sign in to comment.