Enable load static option to the canvas parameter
[synfig.git] / synfig-core / src / synfig / loadcanvas.cpp
index e36c63a..1e715c3 100644 (file)
@@ -1795,6 +1795,8 @@ CanvasParser::parse_layer(xmlpp::Element *element,Canvas::Handle canvas)
                                        if(!c) error((*iter),strprintf(_("Failed to load subcanvas '%s'"), str.c_str()));
                                        if(!layer->set_param(param_name,c))
                                                error((*iter),_("Layer rejected canvas link"));
+                                       //Parse the static option and sets it to the canvas ValueBase
+                                       layer->set_param_static(param_name, parse_static(child));
                                }
                                else
                                try