Skip to content

Commit

Permalink
fix(bbmodel): use correct model_identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal541 committed Sep 19, 2022
1 parent b267525 commit 933c51c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/ImportFile/BBModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { FileDropper } from '/@/components/FileDropper/FileDropper'
import { AnyFileHandle } from '/@/components/FileSystem/Types'
import { ConfirmationWindow } from '/@/components/Windows/Common/Confirm/ConfirmWindow'
import { extname, join } from '/@/utils/path'
import json5 from 'json5'
import { DropdownWindow } from '../Windows/Common/Dropdown/DropdownWindow'
import { clamp } from '/@/utils/math/clamp'

Expand Down Expand Up @@ -163,7 +162,7 @@ export class BBModelImporter extends FileImporter {
async exportModel(app: App, data: any) {
const entityModel = <any>{
description: {
identifier: 'geometry.' + (data.geometry_name || 'unknown'),
identifier: 'geometry.' + (data.model_identifier || 'unknown'),
texture_width: data.resolution.width || 16,
texture_height: data.resolution.height || 16,
visible_bounds_width: data.visible_box?.[0] ?? 0,
Expand Down

0 comments on commit 933c51c

Please sign in to comment.