diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-09-02 10:30:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-09-02 10:31:34 +0300 |
commit | eecf14222b0338d0d193648e1ede17bf48517e23 (patch) | |
tree | d04e14c94ca36c1f50f463d1794c01c84902647c /io_scene_x3d | |
parent | 59c8409947c4174983a36ec28dfeda2be9e254d2 (diff) |
Fix T91113: printf in X3D Importer causes NameError
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 6 |
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) |