Commit eecf1422 authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix T91113: printf in X3D Importer causes NameError

parent 59c84099
......@@ -1622,8 +1622,10 @@ def importMesh_ApplyColors(bpymesh, geom, ancestry):
elif len(rgb) == len(bpymesh.loops):
rgb = tuple(chain(*rgb))
else:
printf("WARNING not applying vertex colors, non matching numbers of vertices or loops (%d vs %d/%d)"
"" % (len(rgb), len(bpymesh.vertices), len(bpymesh.loops)))
print(
"WARNING not applying vertex colors, non matching numbers of vertices or loops (%d vs %d/%d)" %
(len(rgb), len(bpymesh.vertices), len(bpymesh.loops))
)
return
lcol_layer.data.foreach_set("color", rgb)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment