Enable load static option to the canvas parameter
authorCarlos Lopez <genetita@gmail.com>
Tue, 24 Aug 2010 15:41:19 +0000 (17:41 +0200)
committerCarlos Lopez <genetita@gmail.com>
Tue, 24 Aug 2010 15:41:19 +0000 (17:41 +0200)
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