Skip to content

Commit f703d02

Browse files
authored
Fix nightly builds (#6022)
* Update WbCharger.cpp * Update WbCharger.cpp
1 parent 60c4e81 commit f703d02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/webots/nodes/WbCharger.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ void WbCharger::updateMaterialsAndLights(double batteryRatio) {
104104
WbPbrAppearance *appearance = dynamic_cast<WbPbrAppearance *>(visualElement->node);
105105
WbLight *light = dynamic_cast<WbLight *>(visualElement->node);
106106
const WbRgb color(cr, cg, cb);
107+
#ifndef NDEBUG
107108
const bool clampNeeded = WbRgb(cr, cg, cb).clampValuesIfNeeded();
108109
assert(!clampNeeded);
110+
#endif
109111
if (material)
110112
material->setEmissiveColor(color);
111113
else if (appearance)

0 commit comments

Comments
 (0)