Skip to content

Commit 773e043

Browse files
committed
Merge pull request mrdoob#6776 from amirebrahimi/master
These changes update the exporter to work with 3ds Max 2016
2 parents a72b0e0 + 7b81900 commit 773e043

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

utils/exporters/max/ThreeJSAnimationExporter.ms

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,7 @@ rollout ThreeJSExporter "ThreeJSExporter"
13031303

13041304
max modify mode
13051305

1306+
modPanel.setCurrentObject node.modifiers[#skin]
13061307
total_bones = skinops.getnumberbones node.modifiers[#skin]
13071308

13081309
vertex_count = getNumverts node

utils/exporters/max/ThreeJSExporter_MorphTargets_v0.ms

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,20 @@ function eav_get_range_from_mods_con obj &i_t1 &i_t2 =
115115
for pr in props do
116116
(
117117
mod_con = (getPropertyController cmod pr)
118-
118+
119+
--format "% = % (Animatable - %)\n" pr mod_con (isPropertyAnimatable obj pr)
119120
if mod_con == undefined then
120121
(
121-
continue
122+
if cmod.name == "Morpher" then
123+
(
124+
format "% = %" pr cmod[pr]
125+
mod_con = cmod[pr]
126+
)
127+
128+
if mod_con == undefined then
129+
(
130+
continue
131+
)
122132
)
123133

124134
if mod_con.keys.count <= 0 then

0 commit comments

Comments
 (0)