| 1345 | } |
| 1346 | |
| 1347 | bool Space_Impl::setLightingPower(double lightingPower) { |
| 1348 | OptionalLights templateLights; |
| 1349 | LightsVector myLights = lights(); |
| 1350 | if (myLights.empty()) { |
| 1351 | if (OptionalSpaceType st = spaceType()) { |
| 1352 | myLights = st->lights(); |
| 1353 | } |
| 1354 | } |
| 1355 | if (!myLights.empty()) { |
| 1356 | templateLights = myLights[0]; |
| 1357 | } |
| 1358 | return setLightingPower(lightingPower, templateLights); |
| 1359 | } |
| 1360 | |
| 1361 | bool Space_Impl::setLightingPower(double lightingPower, const boost::optional<Lights>& templateLights) { |
| 1362 | if (lightingPower < 0.0) { |
nothing calls this directly
no test coverage detected