feat: construct native visual subclasses from Endor source
Verify Tessera GUI / verify (push) Successful in 9m53s
Verify Tessera GUI / verify (push) Successful in 9m53s
This commit is contained in:
+7
-4
@@ -141,10 +141,13 @@ impl RenderCache {
|
||||
let kind = match &data.kind {
|
||||
Kind::Text { value, size, color } => {
|
||||
let value = if let Some((source, field)) = &data.text_binding {
|
||||
dependencies.push(Dependency {
|
||||
object: *source,
|
||||
property: Some(field.clone()),
|
||||
});
|
||||
let storage = store.attribute_path(*source)?;
|
||||
for (index, object) in storage.iter().enumerate() {
|
||||
dependencies.push(Dependency {
|
||||
object: *object,
|
||||
property: (index + 1 == storage.len()).then(|| field.clone()),
|
||||
});
|
||||
}
|
||||
match store.get_attr(*source, field)? {
|
||||
Value::Nil => "nil".into(),
|
||||
Value::Bool(v) => v.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user