Invalidate rendering when typed method storage is shadowed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user