set_link("max",ValueNode_Const::create(value.get(Real())));
set_link("link",ValueNode_Const::create(value.get(Real())));
break;
+ case ValueBase::TYPE_TIME:
+ set_link("min",ValueNode_Const::create(value.get(Time())));
+ set_link("max",ValueNode_Const::create(value.get(Time())));
+ set_link("link",ValueNode_Const::create(value.get(Time())));
+ break;
default:
assert(0);
throw runtime_error("synfig::ValueNode_Range:Bad type "+ValueBase::type_name(id));
return range((*min_)(t).get(int()), (*max_)(t).get(int()), (*link_)(t).get(int()));
case ValueBase::TYPE_REAL:
return range((*min_)(t).get(Real()), (*max_)(t).get(Real()), (*link_)(t).get(Real()));
+ case ValueBase::TYPE_TIME:
+ return range((*min_)(t).get(Time()), (*max_)(t).get(Time()), (*link_)(t).get(Time()));
default:
assert(0);
break;
{
return type==ValueBase::TYPE_ANGLE
|| type==ValueBase::TYPE_INTEGER
- || type==ValueBase::TYPE_REAL;
+ || type==ValueBase::TYPE_REAL
+ || type==ValueBase::TYPE_TIME;
}