Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Youva committed Dec 18, 2024
1 parent 4aef6b7 commit 988186a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/native/module/vtkF3DQuakeMDLImporter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class vtkF3DQuakeMDLImporter::vtkInternals
float size;
};


//----------------------------------------------------------------------------
void CreateMesh(std::vector<unsigned char> buffer, int offset, mdl_header_t* header)
{
Expand Down Expand Up @@ -169,7 +168,8 @@ class vtkF3DQuakeMDLImporter::vtkInternals
float* time;
mdl_simpleframe_t* frames;
};
std::vector<plugin_frame_pointer> framePtr = std::vector<plugin_frame_pointer>(header->numFrames);
std::vector<plugin_frame_pointer> framePtr =
std::vector<plugin_frame_pointer>(header->numFrames);
for (int i = 0; i < header->numFrames; i++)
{
int* type = (int*)(buffer.data() + offset);
Expand Down Expand Up @@ -387,7 +387,6 @@ class vtkF3DQuakeMDLImporter::vtkInternals
i++;
}
}

}

//----------------------------------------------------------------------------
Expand Down Expand Up @@ -427,8 +426,8 @@ class vtkF3DQuakeMDLImporter::vtkInternals
{ return pair.first == animationIndex; }));
int lastFrameIndex = std::distance(GroupAndTimeVal.begin(),
std::find_if(GroupAndTimeVal.begin(), GroupAndTimeVal.end(),
[animationIndex](const std::pair<int, float> pair)
{ return pair.first > animationIndex; }));
[animationIndex](const std::pair<int, float> pair)
{ return pair.first > animationIndex; }));
firstFrameIndex = firstFrameIndex <= (int)GroupAndTimeVal.size() ? firstFrameIndex : 0;
lastFrameIndex =
lastFrameIndex <= (int)GroupAndTimeVal.size() ? lastFrameIndex - 1 : lastFrameIndex;
Expand All @@ -451,7 +450,8 @@ class vtkF3DQuakeMDLImporter::vtkInternals
[animationIndex](const std::pair<int, float> pair)
{ return pair.first > animationIndex; }));
firstFrameIndex = firstFrameIndex <= (int)GroupAndTimeVal.size() ? firstFrameIndex : 0;
lastFrameIndex = lastFrameIndex <= (int)GroupAndTimeVal.size() ? lastFrameIndex - 1 : lastFrameIndex;
lastFrameIndex =
lastFrameIndex <= (int)GroupAndTimeVal.size() ? lastFrameIndex - 1 : lastFrameIndex;
for (int i = firstFrameIndex; i <= lastFrameIndex; i++)
{
ActiveFrames.erase(
Expand Down Expand Up @@ -570,7 +570,7 @@ void vtkF3DQuakeMDLImporter::DisableAnimation(vtkIdType animationIndex)
bool vtkF3DQuakeMDLImporter::IsAnimationEnabled(vtkIdType animationIndex)
{
return std::count(this->Internals->ActiveAnimationId.begin(),
this->Internals->ActiveAnimationId.end(), animationIndex) > 0;
this->Internals->ActiveAnimationId.end(), animationIndex) > 0;
}

//----------------------------------------------------------------------------
Expand Down

0 comments on commit 988186a

Please sign in to comment.