Skip to content

Commit 3c0d63a

Browse files
committed
Remove user-typed file extension when saving as frames so no spaghetti saved file names
1 parent 8b80658 commit 3c0d63a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Types/FileIO.bmx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Type FileIO
112112
Method SaveFileAsFrames:Int(pixmapToSave:TPixmap[,], frameCount:Int)
113113
Local filename:String = RequestFile("Save graphic output", Null, True) 'No file extensions from filters here, we add them later manually otherwise exported file name is messed up.
114114
If pixmapToSave <> Null And CheckValidExportFileName(filename) Then
115+
filename = StripExt(filename) 'Remove a file extension that was typed in by the user if any.
115116
Local saveSuccess:Int = True
116117
For Local limb:Int = 0 To 3
117118
Local limbName:String 'Name the limbs - by default: ArmFG, ArmBG, LegFG, LegBG in this order.

0 commit comments

Comments
 (0)