Commit 4701c286 authored by bitplane's avatar bitplane

fixed a bug in CBillboardTextSceneNode::setText, the mesh data text was not cleared

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@746 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 1f1006a1
Changes in version 1.4 (... 2007) Changes in version 1.4 (... 2007)
- Fixed a bug in CBillboardTextSceneNode::setText where the old text was not cleared.
- IGUIElement now calls getter and setter functions when serializing, - IGUIElement now calls getter and setter functions when serializing,
in case people override them. in case people override them.
......
...@@ -159,6 +159,13 @@ void CBillboardTextSceneNode::setText(const wchar_t* text) ...@@ -159,6 +159,13 @@ void CBillboardTextSceneNode::setText(const wchar_t* text)
Symbol.clear(); Symbol.clear();
// clear mesh
for (u32 j=0; j < Mesh->getMeshBufferCount(); ++j)
{
((SMeshBuffer*)Mesh->getMeshBuffer(j))->Indices.clear();
((SMeshBuffer*)Mesh->getMeshBuffer(j))->Vertices.clear();
}
if (!Font) if (!Font)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment