瀏覽代碼

Fixed behaviour glitch on draggable cubes example.

Mr.doob 14 年之前
父節點
當前提交
48eb624d59
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/webgl_interactive_draggablecubes.html

+ 2 - 0
examples/webgl_interactive_draggablecubes.html

@@ -192,6 +192,8 @@
 
 				event.preventDefault();
 
+				plane.position.copy( INTERSECTED.position );
+
 				SELECTED = null;
 
 				container.style.cursor = 'auto';