Skip to content

Commit 32b505f

Browse files
author
ochafik
committed
Fix 3mf export flow through material dialog
1 parent 011ff21 commit 32b505f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/ExportButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function ExportButton({className, style}: {className?: string, st
5252
{
5353
data: '3mf',
5454
buttonLabel: 'Download 3MF',
55-
label: '3MF (3D Manufacturing Format)',
55+
label: '3MF (Multimaterial)',
5656
icon: 'pi pi-file',
5757
command: () => model!.setFormats(undefined, '3mf'),
5858
},

src/components/MultimaterialColorsDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ export default function MultimaterialColorsDialog() {
4343
disabled={!tempExtruderColors.every(c => chroma.valid(c) || c.trim() === '')}
4444
autoFocus
4545
onClick={e => {
46+
const wasExporting = state.view.extruderPickerVisibility === 'exporting';
4647
model!.mutate(s => {
4748
s.params.extruderColors = tempExtruderColors.filter(c => c.trim() !== '');
4849
s.view.extruderPickerVisibility = undefined;
4950
});
50-
if (state.view.extruderPickerVisibility === 'exporting') {
51+
if (wasExporting) {
5152
model!.export();
5253
}
5354
}} />

0 commit comments

Comments
 (0)