Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a0ddd4

Browse files
committed
refactor(soba/loaders): use fbxResource in injectFbx
1 parent 48ba0c7 commit 5a0ddd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/soba/loaders/src/lib/fbx-loader.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Injector } from '@angular/core';
22
import { injectLoader } from 'angular-three';
33
import { assertInjector } from 'ngxtension/assert-injector';
44
import { FBXLoader } from 'three-stdlib';
5+
import { fbxResource } from './fbx-resource';
56

67
/**
78
* @deprecated Use fbxResource instead. Will be removed in v5.0.0
@@ -12,7 +13,8 @@ function _injectFBX<TUrl extends string | string[] | Record<string, string>>(
1213
{ injector }: { injector?: Injector } = {},
1314
) {
1415
return assertInjector(_injectFBX, injector, () => {
15-
return injectLoader(() => FBXLoader, input);
16+
const resource = fbxResource(input, { injector });
17+
return resource.value.asReadonly();
1618
});
1719
}
1820

0 commit comments

Comments
 (0)