File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -1261,14 +1261,17 @@ void RenderUtil::Update()
1261
1261
1262
1262
if (newLightRendering)
1263
1263
{
1264
- rendering::VisualPtr lightVisual =
1265
- this ->dataPtr ->sceneManager .CreateLightVisual (
1266
- std::get<0 >(light) + 1 ,
1267
- std::get<1 >(light),
1268
- std::get<2 >(light),
1269
- std::get<0 >(light));
1270
- this ->dataPtr ->matchLightWithVisuals [std::get<0 >(light)] =
1271
- std::get<0 >(light) + 1 ;
1264
+ if (!this ->dataPtr ->enableSensors )
1265
+ {
1266
+ rendering::VisualPtr lightVisual =
1267
+ this ->dataPtr ->sceneManager .CreateLightVisual (
1268
+ std::get<0 >(light) + 1 ,
1269
+ std::get<1 >(light),
1270
+ std::get<2 >(light),
1271
+ std::get<0 >(light));
1272
+ this ->dataPtr ->matchLightWithVisuals [std::get<0 >(light)] =
1273
+ std::get<0 >(light) + 1 ;
1274
+ }
1272
1275
}
1273
1276
else
1274
1277
{
You can’t perform that action at this time.
0 commit comments