diff --git a/src/mesh/Rope.js b/src/mesh/Rope.js index e8c1c60..08ced76 100644 --- a/src/mesh/Rope.js +++ b/src/mesh/Rope.js @@ -20,8 +20,6 @@ */ function Rope(texture, points) { - Mesh.call(this, texture); - /* * @member {Array} An array of points that determine the rope */ @@ -47,7 +45,8 @@ */ this.indices = new Uint16Array(points.length * 2); - this.refresh(); + // call base ctor (which will set texture and cause refresh to be called) + Mesh.call(this, texture); }