Skip to content

Commit f33136c

Browse files
committed
fix(soba): clean up sampler returning the computed directly
1 parent d41fc91 commit f33136c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: libs/soba/misc/src/lib/sampler.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function injectSurfaceSampler(
6565
return new InstancedBufferAttribute(Float32Array.from(arr), 16);
6666
})();
6767

68-
const buffer = computed(() => {
68+
return computed(() => {
6969
const currentMesh = resolveRef(mesh());
7070
if (!currentMesh) return initialBufferAttribute;
7171

@@ -126,12 +126,6 @@ export function injectSurfaceSampler(
126126
initialBufferAttribute,
127127
);
128128
});
129-
130-
return computed(() => {
131-
const _buffer = buffer();
132-
if (!_buffer) return initialBufferAttribute;
133-
return _buffer;
134-
});
135129
});
136130
}
137131

0 commit comments

Comments
 (0)