Skip to content

Commit 39160bc

Browse files
PRXPHETxrSimpodin
authored andcommitted
Fix for c1b3bbf
1 parent c328a6d commit 39160bc

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

ogsr_engine/xr_3da/xr_collide_form.cpp

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,9 @@ BOOL CCF_Skeleton::_RayQuery(const collide::ray_defs& Q, collide::rq_results& R)
235235
{
236236
ZoneScoped;
237237

238-
if (dwFrameTL != Device.dwFrame)
239-
{
240-
BuildTopLevel();
238+
Calculate();
241239

242-
dwFrameTL = Device.dwFrame;
243-
}
244-
245-
Fsphere w_bv_sphere;
240+
Fsphere w_bv_sphere{};
246241
owner->XFORM().transform_tiny(w_bv_sphere.P, bv_sphere.P);
247242
w_bv_sphere.R = bv_sphere.R;
248243

@@ -251,13 +246,6 @@ BOOL CCF_Skeleton::_RayQuery(const collide::ray_defs& Q, collide::rq_results& R)
251246
if (res == Fsphere::rpNone)
252247
return FALSE;
253248

254-
IKinematics* K = PKinematics(owner->Visual());
255-
if (dwFrame != Device.dwFrame || K->LL_GetBonesVisible() != vis_mask)
256-
{
257-
// Model changed between ray-picks
258-
BuildState();
259-
}
260-
261249
std::shared_lock lock{skeleton_mtx};
262250

263251
BOOL bHIT = FALSE;

0 commit comments

Comments
 (0)