mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Implemented @rectalogic Loader.extractUrlbase fix.
This commit is contained in:
@@ -59,7 +59,7 @@ THREE.Loader.prototype = {
|
||||
|
||||
var chunks = url.split( "/" );
|
||||
chunks.pop();
|
||||
return chunks.join( "/" );
|
||||
return chunks.length < 1 ? "." : chunks.join( "/" );
|
||||
|
||||
},
|
||||
|
||||
@@ -136,7 +136,7 @@ THREE.Loader.prototype = {
|
||||
|
||||
}
|
||||
|
||||
function create_texture ( where, name, sourceFile, repeat, offset, wrap ) {
|
||||
function create_texture( where, name, sourceFile, repeat, offset, wrap ) {
|
||||
|
||||
var texture = document.createElement( 'canvas' );
|
||||
|
||||
@@ -174,7 +174,7 @@ THREE.Loader.prototype = {
|
||||
|
||||
}
|
||||
|
||||
function rgb2hex ( rgb ) {
|
||||
function rgb2hex( rgb ) {
|
||||
|
||||
return ( rgb[ 0 ] * 255 << 16 ) + ( rgb[ 1 ] * 255 << 8 ) + rgb[ 2 ] * 255;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user