[ui] Bounding Box are usable in other nodes, not only Meshing

This commit is contained in:
Aurore LAFAURIE 2024-04-26 11:18:04 +02:00
parent 6791f02f2d
commit 9b0de32930
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ Entity {
// Specific properties to the MESHING node (declared and initialized for every Entity anyway)
property bool hasBoundingBox: {
if (nodeType === "Meshing" && currentNode.attribute("useBoundingBox")) // Can have a BoundingBox
if (currentNode.hasAttribute("useBoundingBox")) // Can have a BoundingBox
return currentNode.attribute("useBoundingBox").value
return false
}