supertuxkart / stk-code

The code base of supertuxkart
Other
4.51k stars 1.06k forks source link

Blender scripts don't export particle (objects placed with particles) #1536

Open MatthewsSam opened 10 years ago

MatthewsSam commented 10 years ago

The blender scripts don't export anymore the objects placed with the particles system in blender.

IF you export with it chocolate it will be exported without the vegetation (palm trees, flowers, plants, etc).

It seems that for obj in self.m_objects (~ line 516), self.m_objects is empty so it dosent' go inside the export loop.

MatthewsSam commented 10 years ago

After doing some investigations, this condition seems discarding all particle system

if object.particle_systems[0].settings.dupli_object is not None and getObjectProperty(object.particle_systems[0].settings.dupli_object, "type", "") == "object":

@auriamg is there a purpose of doing this check ? If I remove its, it seems to work fine. Can you clarify why this was done :)

Sam

MatthewsSam commented 10 years ago

After some tests, it's this condition that fails

getObjectProperty(object.particle_systems[0].settings.dupli_object, "type", "") == "object":

auriamg commented 10 years ago

I am unable to reproduce this issue