Skip to content

Commit

Permalink
Support the textures not supported by glTF.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelTallet committed Nov 23, 2019
1 parent 20314f5 commit d2f1516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/pbr/textures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def self.fix_without_filename_or_not_supported
or mat.materialType == Sketchup::Material::MATERIAL_COLORIZED_TEXTURED

if mat.texture.filename.empty?\
or mat.texture.filename !~ /\.(png|jpg|jpeg)$/
or mat.texture.filename !~ /\.(jpg|png)$/

texture_path = File.join(
Sketchup.temp_dir, 'sketchup-tex-' + mat.object_id.to_s + '.png'
Expand Down

0 comments on commit d2f1516

Please sign in to comment.