Skip to content

Commit f7bf8dc

Browse files
committed
🛠️ Fix invalid animation names
1 parent b020e4e commit f7bf8dc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/systems/animationRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export function updatePreview(animation: _Animation, time: number) {
274274

275275
export function renderAnimation(animation: _Animation, rig: IRenderedRig) {
276276
const rendered = {
277-
name: animation.name,
277+
name: toSafeFuntionName(animation.name),
278278
storageSafeName: toSafeFuntionName(animation.name).replaceAll('.', '_'),
279279
loopDelay: Number(animation.loop_delay) || 0,
280280
frames: [],

src/systems/datapackCompiler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,6 @@ async function writeFiles(map: Map<string, string>, dataPackFolder: string) {
703703
const oldFile: IFunctionTag = JSON.parse(fs.readFileSync(path, 'utf-8'))
704704
const newFile: IFunctionTag = JSON.parse(content)
705705
const merged = mergeTag(oldFile, newFile)
706-
// console.log('Merged Function Tag:', path, merged)
707706
if (aj.export_namespace !== Project!.last_used_export_namespace) {
708707
merged.values = merged.values.filter(v => {
709708
const value = typeof v === 'string' ? v : v.id

0 commit comments

Comments
 (0)