Skip to content

Commit

Permalink
make format strings unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Jan 27, 2020
1 parent a5d71ee commit d96faf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trimesh/exchange/dae.py
Expand Up @@ -130,14 +130,14 @@ def export_collada(mesh, **kwargs):
)
indices = np.repeat(m.faces.flatten(), len(arrays))

matref = 'material{}'.format(i)
matref = u'material{}'.format(i)
triset = geom.createTriangleSet(indices, input_list, matref)
geom.primitives.append(triset)
c.geometries.append(geom)

matnode = collada.scene.MaterialNode(matref, mat, inputs=[])
geomnode = collada.scene.GeometryNode(geom, [matnode])
node = collada.scene.Node('node{}'.format(i), children=[geomnode])
node = collada.scene.Node(u'node{}'.format(i), children=[geomnode])
nodes.append(node)
scene = collada.scene.Scene('scene', nodes)
c.scenes.append(scene)
Expand Down Expand Up @@ -219,7 +219,7 @@ def _parse_node(node,
vis = visual.texture.TextureVisuals(
uv=uv, material=material)

primid = '{}.{}'.format(geometry.id, i)
primid = u'{}.{}'.format(geometry.id, i)
meshes[primid] = {
'vertices': vertices,
'faces': faces,
Expand Down

0 comments on commit d96faf1

Please sign in to comment.