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

Skip to content

Commit e8a94c2

Browse files
committed
fix(soba): clean up trail texture
1 parent 6160a2e commit e8a94c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/soba/misc/src/trail-texture/inject-trail-texture.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ export function injectNgtsTrailTexture(
99
) {
1010
injector = assertInjector(injectNgtsTrailTexture, injector);
1111
return runInInjectionContext(injector, () => {
12-
const config = computed(() => trailConfigFn() || {});
13-
const trail = computed(() => new TrailTexture(config()));
12+
const trail = computed(() => new TrailTexture(trailConfigFn() || {}));
1413
const texture = computed(() => trail().texture);
1514

1615
injectBeforeRender(({ delta }) => {

0 commit comments

Comments
 (0)