Invalidate rendering when typed method storage is shadowed

This commit is contained in:
2026-10-22 15:28:47 +08:00
parent ab40e424e0
commit b2fe392ddb
5 changed files with 71 additions and 2 deletions
+11
View File
@@ -123,6 +123,7 @@ impl RenderCache {
return Err(VmError::ExecutionLimit("expanded Block graph"));
}
}
store.check_typed_instance_storage(block)?;
let (data_ref, raw_data, raw_dependencies) = block::resolve_tracked(store, block)?;
let data = block::visual_data(store, raw_data)?;
let mut dependencies: Vec<_> = raw_dependencies
@@ -132,6 +133,16 @@ impl RenderCache {
property: None,
})
.collect();
let storage = *store
.attribute_path(block)?
.last()
.expect("nonempty attribute path");
for name in store.typed_method_names(block)? {
dependencies.push(Dependency {
object: storage,
property: Some(name),
});
}
if let Some(properties) = data.properties {
for (name, _) in block::native_properties(&data) {
dependencies.push(Dependency {