ACTION_INIT(Action::LayerParamUnSetStatic);
ACTION_SET_NAME(Action::LayerParamUnSetStatic,"LayerParamUnSetStatic");
-ACTION_SET_LOCAL_NAME(Action::LayerParamUnSetStatic,N_("UnSet Layer Parameter Static"));
+ACTION_SET_LOCAL_NAME(Action::LayerParamUnSetStatic,N_("UnSet Static"));
ACTION_SET_TASK(Action::LayerParamUnSetStatic,"unsetstatic");
ACTION_SET_CATEGORY(Action::LayerParamUnSetStatic,Action::CATEGORY_VALUEDESC);
ACTION_SET_PRIORITY(Action::LayerParamUnSetStatic,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(Canvas::Handle())->is_inline() && parameter.get(Canvas::Handle()))
+ return false;
//! Check if it is not static
if(!parameter.get_static())
return false;