Skip to content

Commit dbee006

Browse files
committed
#68 set uuid on project convert
1 parent e668a03 commit dbee006

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bbmods/modelFormatMod.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as EVENTS from '../constants/events'
2-
import { format as modelFormat } from '../modelFormat'
2+
import { format, format as modelFormat } from '../modelFormat'
33
import { bus } from '../util/bus'
44
import { wrapNumber } from '../util/misc'
55

@@ -14,7 +14,9 @@ ModelFormat.prototype.convertTo = function convertTo() {
1414
var old_format = Format
1515
this.select()
1616
Modes.options.edit.select()
17-
17+
if (Format.id === format.id) {
18+
Project.UUID = guid()
19+
}
1820
// Box UV
1921
if (!this.optional_box_uv) Project.box_uv = this.box_uv
2022

0 commit comments

Comments
 (0)