Skip to content

Commit 30a0b93

Browse files
committed
Force tobytes() to use appropriate ordering
1 parent 036db8a commit 30a0b93

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/meshcat/geometry.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def pack_numpy_array(x):
274274
return {
275275
u"itemSize": item_size(x),
276276
u"type": typename,
277-
u"array": umsgpack.Ext(extcode, x.tobytes()),
277+
u"array": umsgpack.Ext(extcode, x.tobytes('F')),
278278
u"normalized": False
279279
}
280280

@@ -342,6 +342,3 @@ def PointCloud(position, color, **kwargs):
342342
PointsGeometry(position, color),
343343
PointsMaterial(**kwargs)
344344
)
345-
346-
347-

0 commit comments

Comments
 (0)