Skip to content

Commit

Permalink
Disallow gltf files (instead compressed .glb versions should be used) (
Browse files Browse the repository at this point in the history
…#4395)

* Remove gltf from git LFS

* Add a check to disallow .gltf files
  • Loading branch information
hhyyrylainen authored May 30, 2023
1 parent da63cdc commit 54696ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ en.po text linguist-generated=false
*.zip filter=lfs diff=lfs merge=lfs -text
*.dae filter=lfs diff=lfs merge=lfs -text
*.blend filter=lfs diff=lfs merge=lfs -text
*.gltf filter=lfs diff=lfs merge=lfs -text
*.glb filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.fbx filter=lfs diff=lfs merge=lfs -text
Expand Down
8 changes: 7 additions & 1 deletion Scripts/CodeChecks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ public CodeChecks(Program.CheckOptions opts,
},
new BomChecker(BomChecker.Mode.Disallowed, FilesNotAllowedToHaveBom),
new CfgCheck(AssemblyInfoReader.ReadVersionFromAssemblyInfo()),
new DisallowedFileType(".gd", ".mo"))
new DisallowedFileType(".gd", ".mo", ".gltf")
{
ExtraErrorMessages =
{
{ ".gltf", "glTF files should be compressed into .glb files to save space" },
},
})
},
{ "compile", new CompileCheck() },
{ "inspectcode", new InspectCode() },
Expand Down

0 comments on commit 54696ea

Please sign in to comment.