From d2d8a89c4f15ced2929555d59abe3a0c3f2748a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20D=C3=A9l=C3=A8ze?= Date: Fri, 7 Jul 2023 15:26:10 +0200 Subject: [PATCH] fix missing node type (#6310) --- resources/web/wwi/nodes/WbLookupTable.js | 3 +-- resources/web/wwi/nodes/WbPropeller.js | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/web/wwi/nodes/WbLookupTable.js b/resources/web/wwi/nodes/WbLookupTable.js index 2b8f5548287..a7355a08f14 100644 --- a/resources/web/wwi/nodes/WbLookupTable.js +++ b/resources/web/wwi/nodes/WbLookupTable.js @@ -12,9 +12,8 @@ export default class WbLookupTable { const v = lookupTable[i]; this.#inputs[i] = v.x; } - } else { + } else this.#inputs = undefined; - } } minMetricsRange() { diff --git a/resources/web/wwi/nodes/WbPropeller.js b/resources/web/wwi/nodes/WbPropeller.js index 1ea9674b733..da412799a4f 100644 --- a/resources/web/wwi/nodes/WbPropeller.js +++ b/resources/web/wwi/nodes/WbPropeller.js @@ -1,4 +1,5 @@ import WbGroup from './WbGroup.js'; +import { WbNodeType } from './wb_node_type.js'; export default class WbPropeller extends WbGroup { #device; @@ -16,6 +17,10 @@ export default class WbPropeller extends WbGroup { this.#device = device; } + get nodeType() { + return WbNodeType.WB_NODE_PROPELLER; + } + postFinalize() { super.postFinalize();