Skip to content

Commit

Permalink
Secure a Ruby method.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelTallet committed Nov 24, 2019
1 parent adee29e commit b515e51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/pbr/textures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ module Textures
# @return [void]
def self.fix_one_without_filename_or_not_supported(mat)

# XXX Works only on SketchUp >= 2018.
return if Sketchup.version.to_i < 18

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

0 comments on commit b515e51

Please sign in to comment.