Skip to content

Commit

Permalink
Merge pull request #526 from andreasplesch/patch-2
Browse files Browse the repository at this point in the history
SFImage.copy function bug
  • Loading branch information
tsturm committed Jul 29, 2015
2 parents dee7e5b + 9fd4f17 commit b943da2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fields.js
Expand Up @@ -2469,7 +2469,9 @@ x3dom.fields.SFImage.copy = function(that) {
destination.width = that.width;
destination.height = that.height;
destination.comp = that.comp;
destination.setPixels(that.array);
//use instead slice?
//destination.array = that.array.slice();
destination.setPixels(that.getPixels());
return destination;
};

Expand Down

0 comments on commit b943da2

Please sign in to comment.