Add Static option for Constant Value Nodes and the corresponding action to set and...
[synfig.git] / synfig-core / src / synfig / valuenode_const.cpp
index 89ecae7..69caae5 100644 (file)
@@ -118,13 +118,13 @@ ValueNode_Const::set_value(const ValueBase &data)
 String
 ValueNode_Const::get_name()const
 {
-       return "constant";
+       return get_static()?"static":"constant";
 }
 
 String
 ValueNode_Const::get_local_name()const
 {
-       return _("Constant");
+       return get_static()?_("Static"):_("Constant");
 }
 
 void ValueNode_Const::get_times_vfunc(Node::time_set &/*set*/) const