Import a 3D Model and automatically assign and export animations
TypeScript
See if we can start pulling the cloudflare buid info into app
Scott Petrovicbcfea5e1547d
diff --git a/src/create.html b/src/create.htmlindex a307dca..e943110 100644--- a/src/create.html+++ b/src/create.html@@ -392,5 +392,7 @@<div id="view-control-hitbox"></div>+ <span id="build-version"></span>+</body></html>\ No newline at end of filediff --git a/src/environment.js b/src/environment.jsindex af1dc0f..7b618cf 100644--- a/src/environment.js+++ b/src/environment.js@@ -1 +1 @@-export const build_version = 'BUILD_VERSION'+export const build_version = '0.0.0'diff --git a/src/styles.css b/src/styles.cssindex 93917a3..b7456cc 100644--- a/src/styles.css+++ b/src/styles.css@@ -592,4 +592,13 @@ input[type="file"] {#current-animation-name {+}++#build-version {+ position: fixed;+ bottom: 0;+ left: 0;+ padding: 0.5rem 0.7rem;+ font-size: 0.8rem;+ color: var(--text-alternate);}\ No newline at end of filediff --git a/vite.config.js b/vite.config.jsindex 0259f48..a0fbce5 100644--- a/vite.config.js+++ b/vite.config.js@@ -1,18 +1,20 @@-const isCodeSandbox = 'SANDBOX_URL' in process.env || 'CODESANDBOX_HOST' in process.env-import { resolve } from 'path'+import glsl from 'vite-plugin-glsl' // allows us to use external shaders files to be imported into our materials-// allows us to use external shaders files to be imported into our materials-import glsl from 'vite-plugin-glsl'+const is_code_sandbox = 'SANDBOX_URL' in process.env || 'CODESANDBOX_HOST' in process.envexport default {root: 'src/',publicDir: '../static/',base: './',+ define: {+ // expose all Cloudflare environment variables to client+ PROCESS_ENV: JSON.stringify(process.env || 'unknown')+ },server:{host: true,- open: !isCodeSandbox // Open if it's not a CodeSandbox+ open: !is_code_sandbox // Open window if it's not a CodeSandbox},build:{