lib/psd/node_group.rb in psd-1.5.0 vs lib/psd/node_group.rb in psd-2.0.0
- old
+ new
@@ -44,11 +44,19 @@
# Attempt to show all children of this layer.
def show!
@children.each{ |c| c.show! }
end
+ def passthru_blending?
+ blending_mode == 'passthru'
+ end
+
def empty?
- @children.empty?
+ @children.each do |child|
+ return false unless child.empty?
+ end
+
+ return true
end
# Export this layer and it's children to a hash recursively.
def to_hash
super.merge({