diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp index 79fb470..00a54fc 100644 --- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp +++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp @@ -67,7 +67,7 @@ SYNFIG_LAYER_INIT(Advanced_Outline); SYNFIG_LAYER_SET_NAME(Advanced_Outline,"advanced_outline"); SYNFIG_LAYER_SET_LOCAL_NAME(Advanced_Outline,N_("Advanced Outline")); SYNFIG_LAYER_SET_CATEGORY(Advanced_Outline,N_("Geometry")); -SYNFIG_LAYER_SET_VERSION(Advanced_Outline,"0.2"); +SYNFIG_LAYER_SET_VERSION(Advanced_Outline,"0.3"); SYNFIG_LAYER_SET_CVS_ID(Advanced_Outline,"$Id$"); /* === P R O C E D U R E S ================================================= */ diff --git a/synfig-core/src/modules/mod_geometry/outline.cpp b/synfig-core/src/modules/mod_geometry/outline.cpp index ff88035..c1a2a6c 100644 --- a/synfig-core/src/modules/mod_geometry/outline.cpp +++ b/synfig-core/src/modules/mod_geometry/outline.cpp @@ -66,7 +66,7 @@ SYNFIG_LAYER_INIT(Outline); SYNFIG_LAYER_SET_NAME(Outline,"outline"); SYNFIG_LAYER_SET_LOCAL_NAME(Outline,N_("Outline")); SYNFIG_LAYER_SET_CATEGORY(Outline,N_("Geometry")); -SYNFIG_LAYER_SET_VERSION(Outline,"0.2"); +SYNFIG_LAYER_SET_VERSION(Outline,"0.3"); SYNFIG_LAYER_SET_CVS_ID(Outline,"$Id$"); /* === P R O C E D U R E S ================================================= */ diff --git a/synfig-core/src/synfig/layers/layer_group.cpp b/synfig-core/src/synfig/layers/layer_group.cpp index ec62cda..9badd9e 100644 --- a/synfig-core/src/synfig/layers/layer_group.cpp +++ b/synfig-core/src/synfig/layers/layer_group.cpp @@ -64,7 +64,7 @@ SYNFIG_LAYER_INIT(Layer_Group); SYNFIG_LAYER_SET_NAME(Layer_Group,"group"); SYNFIG_LAYER_SET_LOCAL_NAME(Layer_Group,N_("Group")); SYNFIG_LAYER_SET_CATEGORY(Layer_Group,N_("Other")); -SYNFIG_LAYER_SET_VERSION(Layer_Group,"0.2"); +SYNFIG_LAYER_SET_VERSION(Layer_Group,"0.3"); SYNFIG_LAYER_SET_CVS_ID(Layer_Group,"$Id$"); /* === M E T H O D S ======================================================= */ diff --git a/synfig-core/src/synfig/loadcanvas.cpp b/synfig-core/src/synfig/loadcanvas.cpp index 505d068..d4d1b7d 100644 --- a/synfig-core/src/synfig/loadcanvas.cpp +++ b/synfig-core/src/synfig/loadcanvas.cpp @@ -3015,6 +3015,25 @@ CanvasParser::parse_layer(xmlpp::Element *element,Canvas::Handle canvas) // the layer linked it if(!layer->set_param(param_name,data)) { + // TODO(ice0): Add normal version comparision function (check glib) + // TODO(ice0): Remove stubs after updating image files (.sif) + if (param_name == "loopyness" && layer->get_name() == "outline" && (layer->get_version() == "0.3")) { + continue; + } + + if (param_name == "falloff" && layer->get_name() == "circle" && (layer->get_version() == "0.2")) { + continue; + } + + if (param_name == "fast" && layer->get_name() == "advanced_outline" && (layer->get_version() == "0.3")) { + continue; + } + + if (param_name == "enable_transformation" && layer->get_name() == "group" && (layer->get_version() == "0.3")) { + continue; + } + + warning((*iter),strprintf(_("Layer '%s' rejected value for parameter '%s'"), element->get_attribute("type")->get_value().c_str(), param_name.c_str()));