提交 4f3ba55e 编写于 作者: P pushmatrix

Adding the missing constructor reference to Three.js object prototypes

上级 418780fc
此差异已折叠。
......@@ -91,6 +91,8 @@ THREE.Color.prototype = {
return new THREE.Color( this.hex );
}
},
constructor : THREE.Color
};
......@@ -502,7 +502,9 @@ THREE.Geometry.prototype = {
}
}
},
constructor : THREE.Geometry
};
......
......@@ -34,6 +34,8 @@ THREE.Matrix3.prototype = {
return this;
}
},
constructor : THREE.Matrix3
};
......@@ -681,7 +681,9 @@ THREE.Matrix4.prototype = {
this.n23 = m.n23 * invScaleZ;
this.n33 = m.n33 * invScaleZ;
}
},
constructor : THREE.Matrix4
};
......
......@@ -225,6 +225,8 @@ THREE.Object3D.prototype = {
}
}
},
constructor : THREE.Object3D
};
......@@ -182,7 +182,9 @@ THREE.Quaternion.prototype = {
return dest;
}
},
constructor : THREE.Quaternion
}
......
......@@ -180,6 +180,8 @@ THREE.Ray.prototype = {
}
}
},
constructor : THREE.Ray
};
......@@ -35,6 +35,8 @@ THREE.UV.prototype = {
return this;
}
},
constructor : THREE.UV
};
......@@ -172,6 +172,8 @@ THREE.Vector2.prototype = {
return ( ( v.x == this.x ) && ( v.y == this.y ) );
}
},
constructor : THREE.Vector2
};
......@@ -267,6 +267,8 @@ THREE.Vector3.prototype = {
return ( this.lengthSq() < 0.0001 /* almostZero */ );
}
},
constructor : THREE.Vector3
};
......@@ -173,5 +173,7 @@ THREE.Vector4.prototype = {
return this;
},
constructor : THREE.Vector4
};
......@@ -767,6 +767,8 @@ THREE.BinaryLoader.prototype = {
uv.push( new THREE.UV( u4, v4 ) );
where.push( uv );
}
},
constructor : THREE.BinaryLoader
};
......@@ -366,6 +366,8 @@ THREE.Loader.prototype = {
return material;
}
},
constructor : THREE.Loader
};
......@@ -1318,6 +1318,8 @@ THREE.LoaderOld.prototype = {
chunks.pop();
return chunks.join( "/" );
}
},
constructor : THREE.LoaderOld
};
......@@ -763,6 +763,8 @@ THREE.SceneLoader.prototype = {
};
}
},
constructor : THREE.SceneLoader
};
......@@ -29,7 +29,9 @@ THREE.Texture.prototype = {
return new THREE.Texture( this.image, this.mapping, this.wrapS, this.wrapT, this.magFilter, this.minFilter );
}
},
constructor : THREE.Texture
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册