提交 60f70df2 编写于 作者: M Mr.doob

Updated GUI to the new material setup.

There seems to be some bug in the picking code, will investigate.
上级 dae63a1c
......@@ -153,7 +153,7 @@ var Code = function () {
var string = '';
string += '\n\tvar geometry = ' + object.geometry.gui.getCode() + ';';
string += '\n\tvar material = ' + object.materials[ 0 ].gui.getCode() + ';';
string += '\n\tvar material = ' + object.material.gui.getCode() + ';';
string += '\n\tvar mesh = new THREE.Mesh( geometry, material );';
if ( object.position.x != 0 ) string += '\n\tmesh.position.x = ' + object.position.x + ';';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册