Skip to content

Commit 4504a4c

Browse files
committed
Fix bug in the rotation of spheres
1 parent 9f2e15b commit 4504a4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/glow/primitives.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
}
352352

353353
this.pos = origin.add(this.__pos.sub(origin).rotate({angle:angle, axis:rotaxis}))
354-
if (isarrow) this.axis_and_length = this.__axis_and_length.rotate({angle:angle, axis:rotaxis})
354+
if (isarrow) this.__axis_and_length = this.__axis_and_length.rotate({angle:angle, axis:rotaxis})
355355
else this.axis = this.__axis.rotate({angle:angle, axis:rotaxis})
356356
this.up = Y.rotate({angle:angle, axis:rotaxis})
357357

@@ -498,7 +498,7 @@
498498
radius: {
499499
get: function() { return this.__size.__y/2 },
500500
set: function(value) {
501-
this.__size.__x = this.__size.__y = this.__size.__z = 2*value
501+
this.size = vec(2*value,2*value,2*value)
502502
this.__change()
503503
}
504504
}

0 commit comments

Comments
 (0)