Update: CC - Entity Loaded - Moorcow (v6a7eh2o29.js) 90 bytes modified
parent
ddacfb8572
commit
4d1a86660c
|
@ -115,6 +115,11 @@ this.createMesh = function(meshType, type) {
|
||||||
var mesh = this[type].clone();
|
var mesh = this[type].clone();
|
||||||
var material = this[type].materials[0].clone();
|
var material = this[type].materials[0].clone();
|
||||||
mesh.materials = [material];
|
mesh.materials = [material];
|
||||||
|
|
||||||
|
if (typeof this.meshes[meshType] === 'undefined') {
|
||||||
|
this.meshes[meshType] = [];
|
||||||
|
}
|
||||||
|
|
||||||
this.meshes[meshType].push(
|
this.meshes[meshType].push(
|
||||||
{
|
{
|
||||||
inUse : false,
|
inUse : false,
|
||||||
|
|
Loading…
Reference in New Issue