diff --git a/engine/src/core/com/jme3/font/BitmapText.java b/engine/src/core/com/jme3/font/BitmapText.java index 2245f050e..6a483c0e2 100644 --- a/engine/src/core/com/jme3/font/BitmapText.java +++ b/engine/src/core/com/jme3/font/BitmapText.java @@ -133,7 +133,7 @@ public class BitmapText extends Node { * @return color of the text */ public ColorRGBA getColor() { - return block.getColor(); + return letters.getBaseColor(); } /** diff --git a/engine/src/core/com/jme3/font/Letters.java b/engine/src/core/com/jme3/font/Letters.java index f99bc98ea..198c4974b 100644 --- a/engine/src/core/com/jme3/font/Letters.java +++ b/engine/src/core/com/jme3/font/Letters.java @@ -311,6 +311,10 @@ class Letters { setColor( 0, block.getText().length(), color ); } + ColorRGBA getBaseColor() { + return baseColor; + } + /** * @param start start index to set style. inclusive. * @param end end index to set style. EXCLUSIVE.