Skip to content

Commit 20e7c09

Browse files
committed
Cleanup
1 parent 4a9f065 commit 20e7c09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythreejs/core/BufferGeometry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def _gen_repr_from_keys(self, keys):
4545
'%s=%r' % (key, getattr(self, key))
4646
for key in keys if key not in data_keys
4747
]
48-
if not self._compare(self.index, self.__class__.index.default_value):
48+
if (not self._compare(self.index, self.__class__.index.default_value) and
49+
self.index is not None):
4950
signature_parts.append('index=%s' % _attr_value_repr(self.index))
5051
for name in ('attributes', 'morphAttributes'):
5152
if not _dict_is_default(self, name):

0 commit comments

Comments
 (0)