MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / LL_SetBonesVisible

Method LL_SetBonesVisible

ogsr_engine/Layers/xrRender/SkeletonCustom.cpp:559–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559void CKinematics::LL_SetBonesVisible(VisMask mask)
560{
561 visimask.zero();
562 for (u16 b = 0; b < bones->size(); b++)
563 {
564 if (mask.is(b))
565 {
566 visimask.set(b, true);
567 }
568 else
569 {
570 Fmatrix& A = bone_instances[b].mTransform;
571 Fmatrix& B = bone_instances[b].mRenderTransform;
572 A.scale(0.f, 0.f, 0.f);
573 B.mul_43(A, (*bones)[b]->m2b_transform);
574 }
575 }
576 CalculateBones_Invalidate();
577 Visibility_Invalidate();
578}
579
580void CKinematics::Visibility_Update()
581{

Callers 7

RespawnInitMethod · 0.80
SpawnMethod · 0.80
UnsplitSingleMethod · 0.80
RespawnInitMethod · 0.80
PHLoadStateMethod · 0.80
ActivateMethod · 0.80
on_a_hud_attachMethod · 0.80

Calls 6

zeroMethod · 0.80
isMethod · 0.80
mul_43Method · 0.80
sizeMethod · 0.45
setMethod · 0.45
scaleMethod · 0.45

Tested by

no test coverage detected