Respect the --force option with sprite generation.
This commit is contained in:
parent
38e4b3a3d9
commit
972c53ecb5
@ -74,7 +74,7 @@ module Compass
|
|||||||
|
|
||||||
# Does this sprite need to be generated
|
# Does this sprite need to be generated
|
||||||
def generation_required?
|
def generation_required?
|
||||||
!File.exists?(filename) || outdated?
|
!File.exists?(filename) || outdated? || options[:force]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the uniqueness hash for this sprite object
|
# Returns the uniqueness hash for this sprite object
|
||||||
|
Loading…
Reference in New Issue
Block a user