Procházet zdrojové kódy

Fix for text rendering incorrectly performing word wrap sometimes leaving a line with only whitespace

BearishSun před 10 roky
rodič
revize
d28bf9e3e4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      BansheeCore/Source/BsTextData.cpp

+ 1 - 1
BansheeCore/Source/BsTextData.cpp

@@ -464,7 +464,7 @@ namespace BansheeEngine
 							}
 						}
 					}
-					else
+					else if (charId != SPACE_CHAR && charId != TAB_CHAR) // If current char is whitespace add it to the existing line even if it doesn't fit
 					{
 						curLine->finalize(false);