Add comma between layers for mask shorthand

This commit is contained in:
Xidorn Quan 2017-01-30 16:51:03 +11:00
parent 920b0ee6ca
commit 4a0482f0a0

View file

@ -142,6 +142,10 @@
}
for i in 0..len {
if i > 0 {
try!(dest.write_str(", "));
}
% for name in "image mode position_x position_y size repeat origin clip composite".split():
let ${name} = if let DeclaredValue::Value(ref arr) = *self.mask_${name} {
arr.0.get(i % arr.0.len())