Skip to content

Commit 3e50a89

Browse files
committed
also check if there is a dummy associated to set
- when creating list of unity export sets
1 parent 4bc4b01 commit 3e50a89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/Integrations/Autodesk/max/scripts/UnityFbxForMaxPlugin.ms

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ macroScript UnityExport category:"Unity" tooltip:"Export a model to Unity"
207207
fn getUnityExportSets = (
208208
local unityExportSets = #()
209209
for expSet in selectionSets do (
210-
if(matchPattern expSet.name pattern:"*_UnityExportSet" and (not isdeleted expSet) and (expSet != undefined)) do (
210+
if(matchPattern expSet.name pattern:"*_UnityExportSet" and
211+
(not isdeleted expSet) and (expSet != undefined) and
212+
getNodeByName (expSet.name) != undefined) do
213+
(
211214
append unityExportSets expSet
212215
)
213216
)

0 commit comments

Comments
 (0)