mirror of https://github.com/AxioDL/metaforce.git
CUVElement: Provide initial value for cv in GetValueUV()
The game executable itself sets this variable to an initial value of 1 prior to calling cycleFrames' GetValue() member function.
This commit is contained in:
parent
35fb0e4911
commit
af7d8e9095
|
@ -42,7 +42,7 @@ CUVEAnimTexture::CUVEAnimTexture(TToken<CTexture>&& tex, std::unique_ptr<CIntEle
|
|||
}
|
||||
|
||||
void CUVEAnimTexture::GetValueUV(int frame, SUVElementSet& valOut) const {
|
||||
int cv;
|
||||
int cv = 1;
|
||||
x28_cycleFrames->GetValue(frame, cv);
|
||||
float cvf = float(cv) / float(x20_tiles);
|
||||
cvf = float(frame) / cvf;
|
||||
|
|
Loading…
Reference in New Issue