Two ways binding with optimized public property in the interpreter

This commit is contained in:
Olivier Goffart 2020-09-24 14:10:52 +02:00
parent b5d7adef7d
commit 0cb827a901
5 changed files with 104 additions and 34 deletions

View file

@ -512,6 +512,9 @@ fn generate_component<'id>(
}
for (name, decl) in &root_component.root_element.borrow().property_declarations {
if decl.is_alias.is_some() {
continue;
}
let (prop, type_info) = match decl.property_type {
Type::Float32 => animated_property_info::<f32>(),
Type::Int32 => animated_property_info::<i32>(),