Bugfix: Cloning CBillboardSceneNode now copies colors and sizes.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4940 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2014-09-21 14:56:22 +00:00
parent 3dc833cc80
commit 38fd003634
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
--------------------------
Changes in 1.9 (not yet released)
- Bugfix: Cloning CBillboardSceneNode now copies colors and sizes.
- EditBox works now with numpad on X11
- Added helper functions for converting between wchar and utf-8. Patch provided by Hendu.
- Added sphere frustum culling support. Patch provided by Hendu.

View File

@ -281,8 +281,13 @@ ISceneNode* CBillboardSceneNode::clone(ISceneNode* newParent, ISceneManager* new
nb->cloneMembers(this, newManager);
nb->Material = Material;
nb->Size = Size;
nb->TopEdgeWidth = this->TopEdgeWidth;
video::SColor topColor,bottomColor;
getColor(topColor,bottomColor);
nb->setColor(topColor,bottomColor);
if ( newParent )
nb->drop();
return nb;