Comply with another MSVC weirdness (see https://tpt.io/:24744)
This commit is contained in:
parent
88b9084267
commit
8e21dc2646
@ -4,20 +4,20 @@
|
||||
std::vector<StructProperty> const &Particle::GetProperties()
|
||||
{
|
||||
static std::vector<StructProperty> properties = {
|
||||
{ "type" , StructProperty::ParticleType, offsetof(Particle, type ) },
|
||||
{ "life" , StructProperty::ParticleType, offsetof(Particle, life ) },
|
||||
{ "ctype" , StructProperty::ParticleType, offsetof(Particle, ctype ) },
|
||||
{ "x" , StructProperty::Float , offsetof(Particle, x ) },
|
||||
{ "y" , StructProperty::Float , offsetof(Particle, y ) },
|
||||
{ "vx" , StructProperty::Float , offsetof(Particle, vx ) },
|
||||
{ "vy" , StructProperty::Float , offsetof(Particle, vy ) },
|
||||
{ "temp" , StructProperty::Float , offsetof(Particle, temp ) },
|
||||
{ "flags" , StructProperty::UInteger , offsetof(Particle, flags ) },
|
||||
{ "tmp" , StructProperty::Integer , offsetof(Particle, tmp ) },
|
||||
{ "tmp2" , StructProperty::Integer , offsetof(Particle, tmp2 ) },
|
||||
{ "dcolour", StructProperty::UInteger , offsetof(Particle, dcolour) },
|
||||
{ "pavg0" , StructProperty::Float , offsetof(Particle, pavg[0]) },
|
||||
{ "pavg1" , StructProperty::Float , offsetof(Particle, pavg[1]) },
|
||||
{ "type" , StructProperty::ParticleType, (intptr_t)(offsetof(Particle, type )) },
|
||||
{ "life" , StructProperty::ParticleType, (intptr_t)(offsetof(Particle, life )) },
|
||||
{ "ctype" , StructProperty::ParticleType, (intptr_t)(offsetof(Particle, ctype )) },
|
||||
{ "x" , StructProperty::Float , (intptr_t)(offsetof(Particle, x )) },
|
||||
{ "y" , StructProperty::Float , (intptr_t)(offsetof(Particle, y )) },
|
||||
{ "vx" , StructProperty::Float , (intptr_t)(offsetof(Particle, vx )) },
|
||||
{ "vy" , StructProperty::Float , (intptr_t)(offsetof(Particle, vy )) },
|
||||
{ "temp" , StructProperty::Float , (intptr_t)(offsetof(Particle, temp )) },
|
||||
{ "flags" , StructProperty::UInteger , (intptr_t)(offsetof(Particle, flags )) },
|
||||
{ "tmp" , StructProperty::Integer , (intptr_t)(offsetof(Particle, tmp )) },
|
||||
{ "tmp2" , StructProperty::Integer , (intptr_t)(offsetof(Particle, tmp2 )) },
|
||||
{ "dcolour", StructProperty::UInteger , (intptr_t)(offsetof(Particle, dcolour)) },
|
||||
{ "pavg0" , StructProperty::Float , (intptr_t)(offsetof(Particle, pavg[0])) },
|
||||
{ "pavg1" , StructProperty::Float , (intptr_t)(offsetof(Particle, pavg[1])) },
|
||||
};
|
||||
return properties;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user