Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-09-02 10:30:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-09-02 10:31:34 +0300
commiteecf14222b0338d0d193648e1ede17bf48517e23 (patch)
treed04e14c94ca36c1f50f463d1794c01c84902647c
parent59c8409947c4174983a36ec28dfeda2be9e254d2 (diff)
Fix T91113: printf in X3D Importer causes NameError
-rw-r--r--io_scene_x3d/import_x3d.py6
1 files changed, 4 insertions, 2 deletions
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)