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

MTLLoader: Typo in isPowerOfTwo call.

上级 6a73ab2e
...@@ -395,7 +395,7 @@ THREE.MTLLoader.MaterialCreator.prototype = { ...@@ -395,7 +395,7 @@ THREE.MTLLoader.MaterialCreator.prototype = {
THREE.MTLLoader.ensurePowerOfTwo_ = function ( image ) { THREE.MTLLoader.ensurePowerOfTwo_ = function ( image ) {
if ( ! THREE.Math.isPowerOfTwo_( image.width ) || ! THREE.Math.isPowerOfTwo_( image.height ) ) { if ( ! THREE.Math.isPowerOfTwo( image.width ) || ! THREE.Math.isPowerOfTwo( image.height ) ) {
var canvas = document.createElement( "canvas" ); var canvas = document.createElement( "canvas" );
canvas.width = THREE.MTLLoader.nextHighestPowerOfTwo_( image.width ); canvas.width = THREE.MTLLoader.nextHighestPowerOfTwo_( image.width );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册