@@ -242,6 +242,7 @@ CurvePath.prototype = Object.assign( Object.create( Curve.prototype ), {
Curve.prototype.fromJSON.call( this, json );
this.autoClose = json.autoClose;
+ this.curves = [];
for ( var i = 0, l = json.curves.length; i < l; i ++ ) {
@@ -91,6 +91,8 @@ Shape.prototype = Object.assign( Object.create( Path.prototype ), {
Path.prototype.fromJSON.call( this, json );
+ this.holes = [];
+
for ( var i = 0, l = json.holes.length; i < l; i ++ ) {
var hole = json.holes[ i ];
@@ -234,6 +234,8 @@ CatmullRomCurve3.prototype.fromJSON = function ( json ) {
+ this.points = [];
for ( var i = 0, l = json.points.length; i < l; i ++ ) {
var point = json.points[ i ];
@@ -81,6 +81,8 @@ SplineCurve.prototype.fromJSON = function ( json ) {