switch(value.get_type())
{
case ValueBase::TYPE_STRING:
switch(value.get_type())
{
case ValueBase::TYPE_STRING:
- set_link("time",ValueNode_Const::create(Time()));
+ set_link("time",ValueNode_Const::create(Time(0)));
break;
default:
throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
break;
default:
throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
switch (get_type())
{
case ValueBase::TYPE_STRING:
switch (get_type())
{
case ValueBase::TYPE_STRING:
- return time.get_string(get_parent_canvas()->rend_desc().get_frame_rate());
+ if (get_parent_canvas())
+ return time.get_string(get_parent_canvas()->rend_desc().get_frame_rate());
+ else
+ return time.get_string();