Skip to content

Commit cc6f73a

Browse files
authored
Merge pull request #547 from Kitware/proxy-command
fix(ProxyManager): Add command execution
2 parents ba56a5f + 7c1ef2f commit cc6f73a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Sources/Proxy/Core/ProxyManager/properties.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ export default function addVPropertyHandlingAPI(publicAPI, model) {
5858
if (!groupBy[id]) {
5959
groupBy[id] = {};
6060
}
61-
groupBy[id][prop] = changeSet[key];
61+
if (changeSet[key] === '__command_execute__') {
62+
const obj = publicAPI.getProxyById(id);
63+
if (obj) {
64+
obj[prop]();
65+
}
66+
} else {
67+
groupBy[id][prop] = changeSet[key];
68+
}
6269
}
6370

6471
// Apply changes

0 commit comments

Comments
 (0)