提交 41b15554 编写于 作者: M Mr.doob

WebGLObjects: Storing wireframe index in WebGLProperties instead (multi renderers support).

上级 22cb5034
......@@ -198,9 +198,11 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
function getWireframeAttribute( geometry ) {
if ( geometry._wireframe !== undefined ) {
var property = properties.get( geometry );
return geometry._wireframe;
if ( property.wireframe !== undefined ) {
return property.wireframe;
}
......@@ -253,7 +255,7 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
updateAttribute( attribute, 'index' );
geometry._wireframe = attribute;
property.wireframe = attribute;
return attribute;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册