Fixed the cloned Letters to use the cloned StringBlock instead of the

original reference.
revert-573-cleanup_build_scripts
Paul Speed 8 years ago
parent da1b7da329
commit c1764bc425
  1. 2
      jme3-core/src/main/java/com/jme3/font/BitmapText.java

@ -105,7 +105,7 @@ public class BitmapText extends Node {
// Change in behavior: The 'letters' field was not cloned or recreated
// before. I'm not sure how this worked and suspect BitmapText was just
// not cloneable if you planned to change the text later. -pspeed
this.letters = new Letters(font, block, letters.getQuad().isRightToLeft());
this.letters = new Letters(font, this.block, letters.getQuad().isRightToLeft());
// Just noticed BitmapText is not even writable/readable really...
// so I guess cloning doesn't come up that often.

Loading…
Cancel
Save