From c1764bc42524cccec305dcf8dd5d1e8bfc8c6880 Mon Sep 17 00:00:00 2001 From: Paul Speed Date: Sun, 4 Dec 2016 14:24:34 -0500 Subject: [PATCH] Fixed the cloned Letters to use the cloned StringBlock instead of the original reference. --- jme3-core/src/main/java/com/jme3/font/BitmapText.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/font/BitmapText.java b/jme3-core/src/main/java/com/jme3/font/BitmapText.java index dc4e4bd56..714f811c8 100644 --- a/jme3-core/src/main/java/com/jme3/font/BitmapText.java +++ b/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.