kovacsv / JSModeler

A JavaScript framework to create and visualize 3D models.
MIT License
648 stars 124 forks source link

Use the default material set by the user #23

Closed shiruken1 closed 7 years ago

shiruken1 commented 7 years ago

Since FinalizeMaterials() was not taking into account a defaul material set via AddDefaultMaterial(), it was reverting to the built-in material.

Hopefully this clears any style requirements.

Cheers!

shiruken1 commented 7 years ago

Nevermind! I forgot to use JSM.Material when setting up the default one.