Skip to content

Commit dfd6791

Browse files
authored
Merge pull request #81 from LoneDev6/patch-1
Conversion workflow improvements
2 parents 5e16d41 + 0e50202 commit dfd6791

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)