Skip to content

Commit

Permalink
~ Material thumbnail update bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bbeaulant committed Jan 20, 2017
1 parent 99bd3d7 commit ec96714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ladb_toolbox/ruby/controller/materials_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def list_command()
:unknow_material_count => 0,
:materials => []
}
materials.each_with_index { |material, index|
materials.each { |material|

thumbnail_file = File.join(material_thumbnails_dir, "#{index}.png")
thumbnail_file = File.join(material_thumbnails_dir, "#{SecureRandom.uuid}.png")
material.write_thumbnail(thumbnail_file, 128)

material_attributes = MaterialAttributes.new(material)
Expand Down

0 comments on commit ec96714

Please sign in to comment.