X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Flayer_composite.cpp;h=7b9e0bf1cedfeeca1189d9c84cba7f9e5197250c;hb=d89cce8e78eddd1edfd63a3048a5083638dc8b22;hp=93f040a0b8cd7a4c31a03c3a03501f9659a93028;hpb=ccde400e7d43c5cab4c49f4455bc90415c912bea;p=synfig.git diff --git a/synfig-core/src/synfig/layer_composite.cpp b/synfig-core/src/synfig/layer_composite.cpp index 93f040a..7b9e0bf 100644 --- a/synfig-core/src/synfig/layer_composite.cpp +++ b/synfig-core/src/synfig/layer_composite.cpp @@ -157,11 +157,15 @@ bool Layer_Composite::set_param(const String & param, const ValueBase &value) { if(param=="amount" && value.same_type_as(amount_)) + { amount_=value.get(amount_); + amount_static=value.get_static(); + } else if(param=="blend_method" && value.same_type_as(int())) { blend_method_ = static_cast(value.get(int())); + blend_method_static=value.get_static(); if (blend_method_ < 0 || blend_method_ >= Color::BLEND_END) {