- value_node=new ValueNode_Scale();
- if(!value_node->set_value_node(ValueNode_Const::create(x)))
- return 0;
- assert(value_node->get_value_node()->get_type()==x.get_type());
+ set_link("link",ValueNode_Const::create(value.get(Color())));
+ break;
+ case ValueBase::TYPE_INTEGER:
+ set_link("link",ValueNode_Const::create(value.get(int())));
+ break;
+ case ValueBase::TYPE_REAL:
+ set_link("link",ValueNode_Const::create(value.get(Real())));
+ break;
+ case ValueBase::TYPE_TIME:
+ set_link("link",ValueNode_Const::create(value.get(Time())));
+ break;
+ case ValueBase::TYPE_VECTOR:
+ set_link("link",ValueNode_Const::create(value.get(Vector())));