mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
only ask for updates from specific blender using blender ID
This commit is contained in:
@@ -71,7 +71,8 @@ function handleBlenderConnect(blenderId) {
|
|||||||
|
|
||||||
// Function to handle 'default_data' event
|
// Function to handle 'default_data' event
|
||||||
function handleDefaultData(data) {
|
function handleDefaultData(data) {
|
||||||
getDrawingsData();
|
const blenderId = data["blenderId"];
|
||||||
|
getDrawingsData(blenderId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to handle 'blender_disconnect' event
|
// Function to handle 'blender_disconnect' event
|
||||||
@@ -355,12 +356,17 @@ function toggleClientList() {
|
|||||||
clientList.addClass("show");
|
clientList.addClass("show");
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDrawingsData() {
|
function getDrawingsData(blenderId) {
|
||||||
const msg = {
|
const msg = {
|
||||||
sourcePage: "drawings",
|
sourcePage: "drawings",
|
||||||
operator: {
|
operator: {
|
||||||
type: "getDrawings",
|
type: "getDrawings",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (blenderId !== undefined) {
|
||||||
|
msg.BlenderId = blenderId;
|
||||||
|
}
|
||||||
|
|
||||||
socket.emit("web_operator", msg);
|
socket.emit("web_operator", msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user