Skip to content

Commit 4e56ab2

Browse files
committed
update path use relative path
Signed-off-by: Falah Naufal Zaki <falahnzk.dev@gmail.com>
1 parent af7cfdd commit 4e56ab2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/anime/page.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,9 @@ export default function AnimatorPage() {
8888

8989
// Load URDF
9090
const manager = new THREE.LoadingManager();
91-
// Use setURLModifier to prepend basePath to all asset URLs
9291
manager.setURLModifier((url) => {
9392
const basePath = getBasePath();
94-
if (url.startsWith("/")) {
95-
return basePath + url;
96-
}
97-
return basePath + "/" + url;
93+
return basePath + url;
9894
});
9995
const loader = new URDFLoader(manager);
10096
loader.load(

0 commit comments

Comments
 (0)