Skip to content

Commit 9e55cbe

Browse files
committed
Fix datawidgets use in plainbuffergeometry
1 parent 3423ad8 commit 9e55cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythreejs/geometries/PlainBufferGeometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def validate(self, proposal):
2323
if 'index' in value:
2424
# We treat index special, so we might as well do some checking:
2525
idx = value['index']
26-
array = idx.array if isinstance(idx, NDArrayWidget) else idx.array
26+
array = idx.array if isinstance(idx, NDArrayWidget) else idx
2727
if array.dtype.kind != 'u':
2828
raise TraitError('Index attribute must have unsigned integer data')
2929
if array.ndim != 1:

0 commit comments

Comments
 (0)