Enable Parameter Description for Linkable Value Nodes using ParamDesc class.
[synfig.git] / synfig-core / src / synfig / valuenode_bline.cpp
index 8f10689..2131bf5 100644 (file)
@@ -843,3 +843,17 @@ ValueNode_BLine::check_type(ValueBase::Type type)
 {
        return type==ValueBase::TYPE_LIST;
 }
+
+LinkableValueNode::Vocab
+ValueNode_BLine::get_param_vocab()const
+{
+       LinkableValueNode::Vocab ret;
+       for(unsigned int i=0; i<list.size();i++)
+       {
+               ret.push_back(ParamDesc(ValueBase(),strprintf("item%04d",i))
+                       .set_local_name(etl::strprintf(_("Vertex %03d"),i+1))
+               );
+       }
+
+       return ret;
+}