Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Try to use more absolute file path to help linux desktop build

Scott Petrovic387e71288d70
diff --git a/src/lib/processes/animations-listing/AnimationSearch.ts b/src/lib/processes/animations-listing/AnimationSearch.ts
index 3293454..36ee2ff 100644
--- a/src/lib/processes/animations-listing/AnimationSearch.ts
+++ b/src/lib/processes/animations-listing/AnimationSearch.ts
@@ -183,7 +183,7 @@ export class AnimationSearch extends EventTarget {
const preview_data_src_attribute = is_custom_animation
? ''
- : ` data-src="../animpreviews/${preview_folder}/${theme_name}_${anim_name}.webm"`
+ : ` data-src="/animpreviews/${preview_folder}/${theme_name}_${anim_name}.webm"`
const custom_animation_badge_html = is_custom_animation
? '<span class="anim-custom-badge" title="Custom animation" aria-label="Custom animation">C</span>'