Skip to content

Commit 0e50202

Browse files
authored
Conversion workflow improvements
1 parent 5e16d41 commit 0e50202

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bbmods/modelFormatMod.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ ModelFormat.prototype.convertTo = function convertTo() {
154154
Canvas.updateAllBones()
155155
Canvas.updateAllFaces()
156156
updateSelection()
157+
158+
// Mark the project as unsaved, so the user can save it and preserve the conversion
159+
Project.saved = false;
160+
161+
// Hacky method to refresh the top bar and make the custom tab menu appear without reopening the project
162+
Interface.tab_bar.openNewTab()
163+
ModelProject.all[0].select()
157164
}
158165

159166
bus.on(EVENTS.LIFECYCLE.CLEANUP, () => {

0 commit comments

Comments
 (0)