Skip to content

Commit e1476b6

Browse files
committed
Don't include Object3D aggregate attributes in repr
1 parent b4bd6a5 commit e1476b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pythreejs/core/Object3D.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,9 @@ def lookAt(self, vector):
3030
def rotateX(self, rad):
3131
self.exec_three_obj_method('rotateX', rad)
3232

33-
33+
def _repr_keys(self):
34+
# Don't include aggregate structures in repr
35+
super_keys = super(Object3D, self)._repr_keys()
36+
for key in super_keys:
37+
if key not in ['matrix', 'matrixWorld', 'normalMatrix', 'matrixWorldInverse', 'modelViewMatrix']:
38+
yield key

0 commit comments

Comments
 (0)