Respect the --force option with sprite generation.

This commit is contained in:
Chris Eppstein 2011-09-19 18:19:42 -07:00
parent 38e4b3a3d9
commit 972c53ecb5

View File

@ -74,7 +74,7 @@ module Compass
# Does this sprite need to be generated
def generation_required?
!File.exists?(filename) || outdated?
!File.exists?(filename) || outdated? || options[:force]
end
# Returns the uniqueness hash for this sprite object