lib/atome/genesis/genesis.rb in atome-0.5.7.0.3 vs lib/atome/genesis/genesis.rb in atome-0.5.7.0.4
- old
+ new
@@ -150,12 +150,10 @@
# ex : puts a.shape => return all atome with the type 'shape' in this atome
collected_atomes = []
# attached.each do |attached_atome|
# collected_atomes << attached_atome if grab(attached_atome).type.to_sym == element.to_sym
# end
- # TODO : add category for atome( material/physical vs modifier : color, shadow, .. vs shape, image ..)
- # then add condition same things fo code in presets/atome atome_common
- if %i[color shadow paint border].include?(element)
+ if Universe.applicable_atomes.include?(element)
# we do the same for apply to be able to retrieve 'color' and other atome that apply instead of being attached
@apply.each do |attached_atome|
collected_atomes << attached_atome if grab(attached_atome).type.to_sym == element.to_sym
end
else