ACTION_INIT(Action::LayerParamSetStatic);
ACTION_SET_NAME(Action::LayerParamSetStatic,"LayerParamSetStatic");
-ACTION_SET_LOCAL_NAME(Action::LayerParamSetStatic,N_("Set Layer Parameter Static"));
+ACTION_SET_LOCAL_NAME(Action::LayerParamSetStatic,N_("Forbid Animation"));
ACTION_SET_TASK(Action::LayerParamSetStatic,"setstatic");
ACTION_SET_CATEGORY(Action::LayerParamSetStatic,Action::CATEGORY_VALUEDESC);
ACTION_SET_PRIORITY(Action::LayerParamSetStatic,0);
//! Retrieves the current parameter
parameter = _layer->get_param(_param_name);
//! Check that the parameter is not a inline canvas
- if(parameter.get_type()==ValueBase::TYPE_CANVAS)
+ if(parameter.get_type()==ValueBase::TYPE_CANVAS && parameter.get(Canvas::Handle()))
if(parameter.get(Canvas::Handle())->is_inline())
return false;
//! Check if it is already static