Skip to content

Commit d638c8a

Browse files
committed
Also accept .scad extension
1 parent 05183b2 commit d638c8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Graphics/Implicit/Viewer/Loaders.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ loadByExtension
8181
-> IO ()
8282
loadByExtension f initialResolution renderChan
8383
| ".hs" `isSuffixOf` f = loadViaHint f initialResolution renderChan
84+
| ".scad" `isSuffixOf` f = loadViaEscad f initialResolution renderChan
8485
| ".escad" `isSuffixOf` f = loadViaEscad f initialResolution renderChan
85-
loadByExtension f _ _ = putStrLn $ "Don't know how to load " ++ f ++ ", I only know how render .hs and .escad"
86+
loadByExtension f _ _ = putStrLn $ "Don't know how to load " ++ f ++ ", I only know how render .hs, .scad and .escad"
8687

8788
loadViaHint
8889
:: FilePath

0 commit comments

Comments
 (0)