Skip to content

Commit 7c646ba

Browse files
authored
Merge pull request mrdoob#12486 from looeee/FBXLoader_remove_unused_functions
FBXLoader: remove unused functions from FBXTree
2 parents 3c5213e + b70047c commit 7c646ba

File tree

1 file changed

+0
-132
lines changed

1 file changed

+0
-132
lines changed

examples/js/loaders/FBXLoader.js

Lines changed: 0 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -4183,138 +4183,6 @@
41834183

41844184
},
41854185

4186-
searchConnectionParent: function ( id ) {
4187-
4188-
if ( this.__cache_search_connection_parent === undefined ) {
4189-
4190-
this.__cache_search_connection_parent = [];
4191-
4192-
}
4193-
4194-
if ( this.__cache_search_connection_parent[ id ] !== undefined ) {
4195-
4196-
return this.__cache_search_connection_parent[ id ];
4197-
4198-
} else {
4199-
4200-
this.__cache_search_connection_parent[ id ] = [];
4201-
4202-
}
4203-
4204-
var conns = this.Connections.properties.connections;
4205-
4206-
var results = [];
4207-
for ( var i = 0; i < conns.length; ++ i ) {
4208-
4209-
if ( conns[ i ][ 0 ] == id ) {
4210-
4211-
// 0 means scene root
4212-
var res = conns[ i ][ 1 ] === 0 ? - 1 : conns[ i ][ 1 ];
4213-
results.push( res );
4214-
4215-
}
4216-
4217-
}
4218-
4219-
if ( results.length > 0 ) {
4220-
4221-
append( this.__cache_search_connection_parent[ id ], results );
4222-
return results;
4223-
4224-
} else {
4225-
4226-
this.__cache_search_connection_parent[ id ] = [ - 1 ];
4227-
return [ - 1 ];
4228-
4229-
}
4230-
4231-
},
4232-
4233-
searchConnectionChildren: function ( id ) {
4234-
4235-
if ( this.__cache_search_connection_children === undefined ) {
4236-
4237-
this.__cache_search_connection_children = [];
4238-
4239-
}
4240-
4241-
if ( this.__cache_search_connection_children[ id ] !== undefined ) {
4242-
4243-
return this.__cache_search_connection_children[ id ];
4244-
4245-
} else {
4246-
4247-
this.__cache_search_connection_children[ id ] = [];
4248-
4249-
}
4250-
4251-
var conns = this.Connections.properties.connections;
4252-
4253-
var res = [];
4254-
for ( var i = 0; i < conns.length; ++ i ) {
4255-
4256-
if ( conns[ i ][ 1 ] == id ) {
4257-
4258-
// 0 means scene root
4259-
res.push( conns[ i ][ 0 ] === 0 ? - 1 : conns[ i ][ 0 ] );
4260-
// there may more than one kid, then search to the end
4261-
4262-
}
4263-
4264-
}
4265-
4266-
if ( res.length > 0 ) {
4267-
4268-
append( this.__cache_search_connection_children[ id ], res );
4269-
return res;
4270-
4271-
} else {
4272-
4273-
this.__cache_search_connection_children[ id ] = [ ];
4274-
return [ ];
4275-
4276-
}
4277-
4278-
},
4279-
4280-
searchConnectionType: function ( id, to ) {
4281-
4282-
var key = id + ',' + to; // TODO: to hash
4283-
if ( this.__cache_search_connection_type === undefined ) {
4284-
4285-
this.__cache_search_connection_type = {};
4286-
4287-
}
4288-
4289-
if ( this.__cache_search_connection_type[ key ] !== undefined ) {
4290-
4291-
return this.__cache_search_connection_type[ key ];
4292-
4293-
} else {
4294-
4295-
this.__cache_search_connection_type[ key ] = '';
4296-
4297-
}
4298-
4299-
var conns = this.Connections.properties.connections;
4300-
4301-
for ( var i = 0; i < conns.length; ++ i ) {
4302-
4303-
if ( conns[ i ][ 0 ] == id && conns[ i ][ 1 ] == to ) {
4304-
4305-
// 0 means scene root
4306-
this.__cache_search_connection_type[ key ] = conns[ i ][ 2 ];
4307-
return conns[ i ][ 2 ];
4308-
4309-
}
4310-
4311-
}
4312-
4313-
this.__cache_search_connection_type[ id ] = null;
4314-
return null;
4315-
4316-
}
4317-
43184186
} );
43194187

43204188
function isFbxFormatBinary( buffer ) {

0 commit comments

Comments
 (0)