- value_node->set_link("rhs",ValueNode_Const::create(ValueBase(id)));
- value_node->set_link("lhs",ValueNode_Const::create(ValueBase(id)));
- assert(value_node->get_rhs()->get_type()==id);
- assert(value_node->get_lhs()->get_type()==id);
+ set_link("lhs",ValueNode_Const::create(value.get(Angle())));
+ set_link("rhs",ValueNode_Const::create(Angle::deg(0)));
+ break;
+ case ValueBase::TYPE_COLOR:
+ set_link("lhs",ValueNode_Const::create(value.get(Color())));
+ set_link("rhs",ValueNode_Const::create(Color(0,0,0,0)));
+ break;
+ case ValueBase::TYPE_GRADIENT:
+ set_link("lhs",ValueNode_Const::create(value.get(Gradient())));
+ set_link("rhs",ValueNode_Const::create(Gradient()));
+ break;
+ case ValueBase::TYPE_INTEGER:
+ set_link("lhs",ValueNode_Const::create(value.get(int())));
+ set_link("rhs",ValueNode_Const::create(int(0)));
+ break;
+ case ValueBase::TYPE_REAL:
+ set_link("lhs",ValueNode_Const::create(value.get(Real())));
+ set_link("rhs",ValueNode_Const::create(Real(0)));
+ break;
+ case ValueBase::TYPE_TIME:
+ set_link("lhs",ValueNode_Const::create(value.get(Time())));
+ set_link("rhs",ValueNode_Const::create(Time(0)));
+ break;
+ case ValueBase::TYPE_VECTOR:
+ set_link("lhs",ValueNode_Const::create(value.get(Vector())));
+ set_link("rhs",ValueNode_Const::create(Vector(0,0)));