Skip to content

Commit 0cc8627

Browse files
committed
Fix traits for python 2
1 parent fe47fb9 commit 0cc8627

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pythreejs/traits.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
13

24
from traitlets import (
35
Unicode, Int, CInt, Instance, Enum, List, Dict, Float, CFloat,
@@ -42,16 +44,16 @@ def Matrix4(trait_type=CFloat, default=None, **kwargs):
4244

4345
def Face3(**kwargs):
4446
return Tuple(
45-
CInt(), # a Vertex A index.
46-
CInt(), # b Vertex B index.
47-
CInt(), # c Vertex C index.
48-
Union([ # normal (optional) Face normal (Vector3) or array of 3 vertex normals.
47+
CInt(), # a - Vertex A index.
48+
CInt(), # b - Vertex B index.
49+
CInt(), # c - Vertex C index.
50+
Union([ # normal - (optional) Face normal (Vector3) or array of 3 vertex normals.
4951
Vector3(),
5052
List(Vector3(), minlen=3, maxlen=3)]),
51-
Union([ # color (optional) Face color or array of vertex colors.
53+
Union([ # color - (optional) Face color or array of vertex colors.
5254
Unicode(),
5355
List(Unicode(), minlen=3, maxlen=3)]),
54-
CInt(), # materialIndex (optional) which index of an array of materials to associate with the face.
56+
CInt(), # materialIndex - (optional) which index of an array of materials to associate with the face.
5557
)
5658

5759
def Euler(default=None, **kwargs):

0 commit comments

Comments
 (0)