diff options
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-x | js/lib/drawing/world.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js index 8ad4c6f5..7ee9ee00 100755 --- a/js/lib/drawing/world.js +++ b/js/lib/drawing/world.js | |||
@@ -869,7 +869,7 @@ World.prototype.importObjectJSON = function( jObj, parentGeomObj ) | |||
869 | { | 869 | { |
870 | var type = jObj.type; | 870 | var type = jObj.type; |
871 | var BrushStroke = require("js/lib/geom/brush-stroke").BrushStroke; | 871 | var BrushStroke = require("js/lib/geom/brush-stroke").BrushStroke; |
872 | 872 | var SubPath = require("js/lib/geom/sub-path").SubPath; | |
873 | var obj; | 873 | var obj; |
874 | switch (type) | 874 | switch (type) |
875 | { | 875 | { |
@@ -888,6 +888,11 @@ World.prototype.importObjectJSON = function( jObj, parentGeomObj ) | |||
888 | obj.importJSON( jObj ); | 888 | obj.importJSON( jObj ); |
889 | break; | 889 | break; |
890 | 890 | ||
891 | case 5: //cubic bezier | ||
892 | obj = new SubPath(); | ||
893 | obj.importJSON(jObj); | ||
894 | break; | ||
895 | |||
891 | case 6: //brush stroke | 896 | case 6: //brush stroke |
892 | obj = new BrushStroke(); | 897 | obj = new BrushStroke(); |
893 | obj.importJSON(jObj); | 898 | obj.importJSON(jObj); |