Rename the "resource" type to "image"

This commit is contained in:
Olivier Goffart 2021-03-10 17:05:33 +01:00
parent 44e81a40d6
commit c840b046ae
14 changed files with 21 additions and 19 deletions

View file

@ -209,7 +209,7 @@ fn to_eval_value<'cx>(
Ok(Value::Model(sixtyfps_interpreter::ModelPtr(m)))
}
},
Type::Resource => {
Type::Image => {
Ok(Value::Resource(Resource::AbsoluteFilePath(val.to_string(cx)?.value().into())))
}
Type::Bool => Ok(Value::Bool(val.downcast_or_throw::<JsBoolean, _>(cx)?.value())),