- bugfix for windows compile error for new particle feature from titi
This commit is contained in:
parent
4bada8fc5a
commit
4583b8d4bc
|
@ -1163,7 +1163,7 @@ void UnitParticleSystem::initParticle(Particle *p, int particleIndex){
|
||||||
if(meshName!="" && unitModel!=NULL){
|
if(meshName!="" && unitModel!=NULL){
|
||||||
//printf("meshName set unitModel given\n");
|
//printf("meshName set unitModel given\n");
|
||||||
bool foundMesh=false;
|
bool foundMesh=false;
|
||||||
for(uint i=0; i<unitModel->getMeshCount() ; i++){
|
for(unsigned int i=0; i<unitModel->getMeshCount() ; i++){
|
||||||
//printf("meshName=%s\n",unitModel->getMesh(i)->getName().c_str());
|
//printf("meshName=%s\n",unitModel->getMesh(i)->getName().c_str());
|
||||||
if(unitModel->getMesh(i)->getName()==meshName){
|
if(unitModel->getMesh(i)->getName()==meshName){
|
||||||
const InterpolationData *data=unitModel->getMesh(i)->getInterpolationData();
|
const InterpolationData *data=unitModel->getMesh(i)->getInterpolationData();
|
||||||
|
@ -1178,7 +1178,7 @@ void UnitParticleSystem::initParticle(Particle *p, int particleIndex){
|
||||||
}
|
}
|
||||||
if( foundMesh == false ) {
|
if( foundMesh == false ) {
|
||||||
string meshesFound="";
|
string meshesFound="";
|
||||||
for(uint i=0; i<unitModel->getMeshCount() ; i++){
|
for(unsigned i=0; i<unitModel->getMeshCount() ; i++){
|
||||||
meshesFound+= unitModel->getMesh(i)->getName()+", ";
|
meshesFound+= unitModel->getMesh(i)->getName()+", ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue