children_lock=false;
muck_with_time_=true;
curr_time=Time::begin();
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
+ set_param_static("children_lock", true);
}
Layer_PasteCanvas::~Layer_PasteCanvas()
ret.push_back(ParamDesc("time_offset")
.set_local_name(_("Time Offset"))
+ .set_description(_("Time Offset to apply to the context"))
);
ret.push_back(ParamDesc("children_lock")
.set_local_name(_("Children Lock"))
+ .set_description(_("When checked prevents to select the children using the mouse click"))
);
ret.push_back(ParamDesc("focus")
if(param=="canvas" && value.same_type_as(Canvas::Handle()))
{
set_sub_canvas(value.get(Canvas::Handle()));
+ set_param_static(param, value.get_static());
return true;
}
-
//! \todo this introduces bug 1844764 if enabled; it was introduced in r954.
// http://synfig.org/images/3/3d/Moving-waypoints.sifz is an
// example of an animation that has its waypoints displayed
else if (!context.accelerated_render(surface,quality,renddesc,&stageone))
return false;
- if(muck_with_time_ && curr_time!=Time::begin() && canvas->get_time()!=curr_time+time_offset)
+ if(muck_with_time_ && curr_time!=Time::begin() /*&& canvas->get_time()!=curr_time+time_offset*/)
canvas->set_time(curr_time+time_offset);
Color::BlendMethod blend_method(get_blend_method());
Layer::get_times_vfunc(set);
}
+
+
+bool
+Layer_PasteCanvas::set_param_static(const String ¶m, const bool x)
+{
+ return Layer_Composite::set_param_static(param, x);
+}
+
+
+bool
+Layer_PasteCanvas::get_param_static(const String ¶m) const
+{
+ return Layer_Composite::get_param_static(param);
+}