X-Plane / XPlane2Blender

Scenery & Aircraft export addon for Blender and X-Plane
GNU General Public License v3.0
190 stars 67 forks source link

Importer: After importing a second .obj material gets overwritten with the new imported material #677

Open emiliovfx opened 2 years ago

emiliovfx commented 2 years ago

Hello. Having the import option built in is great!

However, when you import a second object, the material of the first object gets overwritten with the new imported material.

It will be good if the material gets the name of the albedo texture used for that object. In this way the materials will not get overwritten with new objects being imported. Also, if you are importing another object that shares the same albedo texture, by assigning the material name to the albedo texture, in this case if the material is overwritten it will not matter as then you will keep the consistency of the different objects using the same albedo texture. Making easier to group the objects that share the same texture.

Cheers!