This commit is contained in:
Sirshendu Ganguly
2026-02-02 11:02:38 -05:00
parent 6f128a1e9d
commit 8182dc8bed
3 changed files with 13 additions and 6 deletions
+3 -2
View File
@@ -73,8 +73,9 @@ function mediaUUIDHandler(msgEvent) {
function save3DFilepathHandler(msgEvent) {
const data = msgEvent.detail;
const filepath = data.filepath;
const nodeID = parseInt(data.nodeID);
const nodeID = parseInt(data.nodeID, 10);
if (Number.isNaN(nodeID)) return false;
if(data.success && filepath) {
const node = app.graph.getNodeById(nodeID);
if(node !== null && node !== undefined) {