We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae2527 commit d711b4bCopy full SHA for d711b4b
src/Layers/xrRender/DetailManager.cpp
@@ -266,8 +266,9 @@ void CDetailManager::UpdateVisibleM()
266
#endif
267
float R = D.bv_sphere.R;
268
float Rq_drcp = R*R*dist_sq_rcp; // reordered expression for 'ssa' calc
269
-
270
- for (auto& SItem : sp.items)
+ auto& ditems = D.m_items;
+ auto& items = sp.items;
271
+ for (auto& SItem : items)
272
{
273
CDetail::SlotItem& Item = *SItem;
274
float scale = Item.scale_calculated = Item.scale*alpha_i;
@@ -279,7 +280,7 @@ void CDetailManager::UpdateVisibleM()
279
280
u32 vis_id = 0;
281
if (ssa > r_ssaCHEAP)
282
vis_id = Item.vis_ID;
- D.m_items[vis_id][calc_key].push_back(SItem);
283
+ ditems[vis_id][calc_key].push_back(SItem);
284
}
285
286
0 commit comments