diff --git a/app/models/CocoModel.coffee b/app/models/CocoModel.coffee index 44a99bee3..4345ae728 100644 --- a/app/models/CocoModel.coffee +++ b/app/models/CocoModel.coffee @@ -154,7 +154,10 @@ class CocoModel extends Backbone.Model markToRevert: -> if @type() is 'ThangType' - @_revertAttributes = _.clone @attributes # No deep clones for these! + # Don't deep clone the raw vector data, but do deep clone everything else. + @_revertAttributes = _.clone @attributes + for smallProp, value of @attributes when value and smallProp isnt 'raw' + @_revertAttributes[smallProp] = _.cloneDeep value else @_revertAttributes = $.extend(true, {}, @attributes)