wowserhq / wowser

World of Warcraft in the browser using JavaScript and WebGL
MIT License
247 stars 63 forks source link

WMO material defs inappropriately override one another #154

Open fallenoak opened 8 years ago

fallenoak commented 8 years ago

In each WMOGroup, when we load the group, we're manipulating some properties on the defs coming over from MOMT-- things like assigning indoor/outdoor flags, etc.

To avoid unexpected overrides of these properties, rather than directly manipulate the original MOMT material def object, we should clone the material def and then manipulate it.

timkurvers commented 8 years ago

👍