File tree 2 files changed +1
-5
lines changed
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ const GLOBAL_REGISTRY = '__global_prop';
10
10
11
11
// Property name references a global property?
12
12
export function isGlobalReference ( val ) {
13
- if ( val && val . slice ( 0 , GLOBAL_PREFIX_LENGTH ) === GLOBAL_PREFIX ) {
14
- return true ;
15
- }
16
- return false ;
13
+ return val ?. slice ( 0 , GLOBAL_PREFIX_LENGTH ) === GLOBAL_PREFIX ;
17
14
}
18
15
19
16
// Has object property been substitued with a value from a global reference?
Original file line number Diff line number Diff line change @@ -281,7 +281,6 @@ const SceneLoader = {
281
281
if ( typeof curValue === 'string' && config . textures [ curValue ] == null ) {
282
282
if ( isGlobalSubstitution ( config , path ) ) {
283
283
// global substituions are resolved against the base scene path, not the import they came from
284
- // const url = curValue;
285
284
const url = base_bundle . urlFor ( curValue ) ;
286
285
config . textures [ curValue ] = { url } ;
287
286
}
You can’t perform that action at this time.
0 commit comments