Skip to content

Commit ddc2019

Browse files
committed
Fix model export when material has no file connections.
1 parent bfe2107 commit ddc2019

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/blender/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
bl_info = {
1010
"name": "Cast Support",
1111
"author": "DTZxPorter",
12-
"version": (1, 9, 6),
12+
"version": (1, 9, 7),
1313
"blender": (3, 6, 0),
1414
"location": "File > Import",
1515
"description": "Import & Export Cast",

plugins/maya/castplugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
}
5555

5656
# Shared version number
57-
version = "1.96"
57+
version = "1.97"
5858

5959
# Time unit to framerate map
6060
framerateMap = {
@@ -842,7 +842,7 @@ def utilityQueryMaterialSlots(shader, matNode, path):
842842
fileConnections = cmds.listConnections(shader,
843843
plugs=True,
844844
connections=True,
845-
type="file")
845+
type="file") or []
846846

847847
for i in xrange(0, len(fileConnections), 2):
848848
connection = fileConnections[i].split(".")[-1]

0 commit comments

Comments
 (0)