aboutsummaryrefslogtreecommitdiff
path: root/js/lib/drawing/world.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/drawing/world.js')
-rwxr-xr-xjs/lib/drawing/world.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js
index e348f5e8..5a2fabe8 100755
--- a/js/lib/drawing/world.js
+++ b/js/lib/drawing/world.js
@@ -942,7 +942,7 @@ World.prototype.importObjectJSON = function( jObj, parentGeomObj )
942{ 942{
943 var type = jObj.type; 943 var type = jObj.type;
944 var BrushStroke = require("js/lib/geom/brush-stroke").BrushStroke; 944 var BrushStroke = require("js/lib/geom/brush-stroke").BrushStroke;
945 945 var SubPath = require("js/lib/geom/sub-path").SubPath;
946 var obj; 946 var obj;
947 switch (type) 947 switch (type)
948 { 948 {
@@ -961,6 +961,11 @@ World.prototype.importObjectJSON = function( jObj, parentGeomObj )
961 obj.importJSON( jObj ); 961 obj.importJSON( jObj );
962 break; 962 break;
963 963
964 case 5: //cubic bezier
965 obj = new SubPath();
966 obj.importJSON(jObj);
967 break;
968
964 case 6: //brush stroke 969 case 6: //brush stroke
965 obj = new BrushStroke(); 970 obj = new BrushStroke();
966 obj.importJSON(jObj); 971 obj.importJSON(jObj);