Import a 3D Model and automatically assign and export animations
TypeScript
Closes #40 - messaging with no animations results
Scott Petrovic8903bf7795b8
diff --git a/src/lib/processes/animations-listing/AnimationSearch.ts b/src/lib/processes/animations-listing/AnimationSearch.tsindex e7d8ecc..960b511 100644--- a/src/lib/processes/animations-listing/AnimationSearch.ts+++ b/src/lib/processes/animations-listing/AnimationSearch.ts@@ -117,6 +117,13 @@ export class AnimationSearch extends EventTarget {// Clear and rebuild the animation listthis.animation_list_container.innerHTML = ''+ // Show "no animations found" if the filtered list is empty+ if (this.filtered_animations_list.length === 0) {+ this.animation_list_container.innerHTML = '<div class="no-animations-message">No animations found</div>'+ return+ }++this.filtered_animations_list.forEach((animation_clip) => {if (this.animation_list_container == null) {returndiff --git a/src/styles.css b/src/styles.cssindex a22676e..9f06483 100644--- a/src/styles.css+++ b/src/styles.css@@ -566,4 +566,10 @@ position: fixed;position: absolute;bottom: 0px;left: 0;+}++#animations-items .no-animations-message {+ padding: 0.5rem;+ font-style: italic;+ font-size: 90%;}\ No newline at end of file