Mercurial > code > home > repos > light9
changeset 2278:702c1fd95dfd
another empty-patch guard, to cause me to fix problems upstream of this call
author | drewp@bigasterisk.com |
---|---|
date | Mon, 29 May 2023 15:18:32 -0700 |
parents | f61531e21a77 |
children | 9e7500543ab6 |
files | light9/web/SyncedGraph.ts |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/SyncedGraph.ts Mon May 29 15:18:04 2023 -0700 +++ b/light9/web/SyncedGraph.ts Mon May 29 15:18:32 2023 -0700 @@ -170,6 +170,7 @@ // In most cases you want applyAndSendPatch. // // This is the only method that writes to this.graph! + if (patch.isEmpty()) throw "dont send empty patches here"; log("_applyPatch [1] \n", patch.dump()); this.cachedFloatValues.clear(); this.cachedUriValues.clear();