projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Honor the "amount" parameter of the 'duplicate' layer.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
layer_duplicate.cpp
diff --git
a/synfig-core/trunk/src/synfig/layer_duplicate.cpp
b/synfig-core/trunk/src/synfig/layer_duplicate.cpp
index
32b9baa
..
6fa857c
100644
(file)
--- a/
synfig-core/trunk/src/synfig/layer_duplicate.cpp
+++ b/
synfig-core/trunk/src/synfig/layer_duplicate.cpp
@@
-184,14
+184,12
@@
Layer_Duplicate::accelerated_render(Context context,Surface *surface,int quality
if(!context.accelerated_render(&tmp,quality,renddesc,&subimagecb)) return false;
Surface::alpha_pen apen(surface->begin());
if(!context.accelerated_render(&tmp,quality,renddesc,&subimagecb)) return false;
Surface::alpha_pen apen(surface->begin());
- apen.set_alpha(
1.0
);
+ apen.set_alpha(
get_amount()
);
// \todo have a checkbox allowing use of 'behind' to reverse the order?
apen.set_blend_method(i ? blend_method : Color::BLEND_COMPOSITE);
tmp.blit_to(apen);
i++;
} while (duplicate_param->step(time_cur));
// \todo have a checkbox allowing use of 'behind' to reverse the order?
apen.set_blend_method(i ? blend_method : Color::BLEND_COMPOSITE);
tmp.blit_to(apen);
i++;
} while (duplicate_param->step(time_cur));
- duplicate_param->reset_index(time_cur);
-
return true;
}
return true;
}