[Bf-extensions-cvs] [eecf1422] master: Fix T91113: printf in X3D Importer causes NameError
Campbell Barton
noreply at git.blender.org
Thu Sep 2 09:32:42 CEST 2021
Commit: eecf14222b0338d0d193648e1ede17bf48517e23
Author: Campbell Barton
Date: Thu Sep 2 17:30:47 2021 +1000
Branches: master
https://developer.blender.org/rBAeecf14222b0338d0d193648e1ede17bf48517e23
Fix T91113: printf in X3D Importer causes NameError
===================================================================
M io_scene_x3d/import_x3d.py
===================================================================
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 5d681a96..92189372 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -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)
More information about the Bf-extensions-cvs
mailing list