Skip to content

Commit

Permalink
fix particleCount to SIMPLE
Browse files Browse the repository at this point in the history
  • Loading branch information
OVOAOVO committed Dec 30, 2023
1 parent 0226728 commit fff2d89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion private/Scene/ParticleEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ParticleEmitter::ParticleEmitter(ParticleEmitterID id, const char* pName)
PIMPL_SIMPLE_TYPE_APIS(ParticleEmitter, ID);
PIMPL_SIMPLE_TYPE_APIS(ParticleEmitter, Type);
PIMPL_SIMPLE_TYPE_APIS(ParticleEmitter, MeshID);
PIMPL_COMPLEX_TYPE_APIS(ParticleEmitter, MaxCount);
PIMPL_SIMPLE_TYPE_APIS(ParticleEmitter, MaxCount);
PIMPL_COMPLEX_TYPE_APIS(ParticleEmitter, Position);
PIMPL_COMPLEX_TYPE_APIS(ParticleEmitter, Velocity);
PIMPL_COMPLEX_TYPE_APIS(ParticleEmitter, Accelerate);
Expand Down
2 changes: 1 addition & 1 deletion private/Scene/ParticleEmitterImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ParticleEmitterImpl final
IMPLEMENT_SIMPLE_TYPE_APIS(ParticleEmitter, ID);
IMPLEMENT_SIMPLE_TYPE_APIS(ParticleEmitter, Type);
IMPLEMENT_SIMPLE_TYPE_APIS(ParticleEmitter, MeshID);
IMPLEMENT_COMPLEX_TYPE_APIS(ParticleEmitter, MaxCount);
IMPLEMENT_SIMPLE_TYPE_APIS(ParticleEmitter, MaxCount);
IMPLEMENT_COMPLEX_TYPE_APIS(ParticleEmitter, Position);
IMPLEMENT_COMPLEX_TYPE_APIS(ParticleEmitter, Velocity);
IMPLEMENT_COMPLEX_TYPE_APIS(ParticleEmitter, Accelerate);
Expand Down
4 changes: 2 additions & 2 deletions private/Scene/SceneDatabaseImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ void SceneDatabaseImpl::Validate() const

for (uint32_t particleIndex = 0U; particleIndex < GetParticleEmitterCount(); ++particleIndex)
{
const cd::ParticleEmitter& ParticleEmitter = GetParticleEmitter(particleIndex);
assert(particleIndex == ParticleEmitter.GetID().Data());
const cd::ParticleEmitter& particleEmitter = GetParticleEmitter(particleIndex);
assert(particleIndex == particleEmitter.GetID().Data());
}
}

Expand Down
2 changes: 1 addition & 1 deletion public/Scene/ParticleEmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CORE_API ParticleEmitter final
EXPORT_SIMPLE_TYPE_APIS(ParticleEmitter, ID);
EXPORT_SIMPLE_TYPE_APIS(ParticleEmitter, Type);
EXPORT_SIMPLE_TYPE_APIS(ParticleEmitter, MeshID);
EXPORT_COMPLEX_TYPE_APIS(ParticleEmitter, MaxCount);
EXPORT_SIMPLE_TYPE_APIS(ParticleEmitter, MaxCount);
EXPORT_COMPLEX_TYPE_APIS(ParticleEmitter, Position);
EXPORT_COMPLEX_TYPE_APIS(ParticleEmitter, Velocity);
EXPORT_COMPLEX_TYPE_APIS(ParticleEmitter, Accelerate);
Expand Down

0 comments on commit fff2d89

Please sign in to comment.