Skip to content

Commit

Permalink
fix 3ds max 2018 - No "get" function for undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Aug 11, 2017
1 parent b8d9669 commit 9d173e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Exporter/3ds Max/SEA3D/SEA3D.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--

global
sea_rawversion = 18002, --VVSSBB ( Exporter version )
sea_rawversion = 18003, --VVSSBB ( Exporter version )
sea_version = 18000 --VVSSBB

global
Expand Down
9 changes: 4 additions & 5 deletions Exporter/3ds Max/SEA3D/SEA3D.ms
Original file line number Diff line number Diff line change
Expand Up @@ -7936,12 +7936,11 @@ fn exportSEA3D filename =
seaUnits[1] = units.DisplayType
seaUnits[2] = units.MetricType

local WM_SETREDRAW=0xB
local commandHWND = windows.getChildHWND #max "Command Panel"

local sea3d = undefined

windows.sendmessage commandHWND[1] WM_SETREDRAW 0 0
local WM_SETREDRAW = 0xB

windows.sendmessage (windows.getmaxhwnd()) WM_SETREDRAW 0 0

units.DisplayType = #Generic
units.MetricType = #Centimeters
Expand All @@ -7966,7 +7965,7 @@ fn exportSEA3D filename =
units.DisplayType = seaUnits[1]
units.MetricType = seaUnits[2]

windows.sendmessage commandHWND[1] WM_SETREDRAW 1 0
windows.sendmessage (windows.getmaxhwnd()) WM_SETREDRAW 1 0

if sea3d != undefined then
(
Expand Down

0 comments on commit 9d173e8

Please sign in to comment.