Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions Core/Libraries/Source/WWVegas/WW3D2/htree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,18 +609,6 @@ void HTreeClass::Anim_Update(const Matrix3D & root,HAnimClass * motion,float fra
For use by 'Generals' -MW*/
void HTreeClass::Anim_Update_Without_Interpolation(const Matrix3D & root,HRawAnimClass * motion,float frame)
{
if (WW3D::Get_Sync_Frame_Time() == 0 && (int)motion->Get_Frame_Rate() == WWSyncPerSecond)
{
// TheSuperHackers @tweak Keep the animation frame step in sync with the ww3d frame step if they can align.
// @todo This needs improving if the WWSyncPerSecond is changed or the animation frame rates can be larger.
#if defined(GENERALS_ONLINE)
static_assert(WWSyncPerSecond == GENERALS_ONLINE_HIGH_FPS_LIMIT, "This is currently catered to a 60/30 fps sync (depending on define)");
#else
static_assert(WWSyncPerSecond == 30, "This is currently catered to a 30 fps sync");
#endif
return;
}

PivotClass *pivot,*endpivot,*lastAnimPivot;

Pivot[0].Transform = root;
Expand Down
3 changes: 3 additions & 0 deletions Generals/Code/Libraries/Source/WWVegas/WW3D2/animobj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,9 @@ void Animatable3DObjClass::Set_HTree(HTreeClass * new_htree)
// just assign it...
delete HTree;
HTree = W3DNEW HTreeClass(*new_htree);

// Mark hierarchy as invalid to force transform recalculation
Set_Hierarchy_Valid(false);
}


Expand Down
3 changes: 3 additions & 0 deletions GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/animobj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,9 @@ void Animatable3DObjClass::Set_HTree(HTreeClass * new_htree)
// just assign it...
delete HTree;
HTree = W3DNEW HTreeClass(*new_htree);

// Mark hierarchy as invalid to force transform recalculation
Set_Hierarchy_Valid(false);
}


Expand Down
Loading