From daedda852377fdbc7cf203c1e87672bc4c6acd0a Mon Sep 17 00:00:00 2001 From: bitplane Date: Mon, 11 Feb 2008 20:00:54 +0000 Subject: [PATCH] Fixed a performance bug in ISceneNode constructor reported by izhbq412 git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1237 dfc29bdd-3216-0410-991c-e03cc46cb475 --- changes.txt | 2 ++ include/ISceneNode.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/changes.txt b/changes.txt index 6e1a0e3f..6af3c2b8 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,7 @@ Changes in version 1.5 (... 2008) + - Fixed a performance bug in ISceneNode constructor reported by izhbq412 + - Added volume light scene node - Better fix for hires timers on dual core machines by RogerBorg diff --git a/include/ISceneNode.h b/include/ISceneNode.h index a503b049..9b1965c2 100644 --- a/include/ISceneNode.h +++ b/include/ISceneNode.h @@ -40,12 +40,12 @@ namespace scene const core::vector3df& rotation = core::vector3df(0,0,0), const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f)) : RelativeTranslation(position), RelativeRotation(rotation), RelativeScale(scale), - Parent(parent), ID(id), SceneManager(mgr), TriangleSelector(0), + Parent(0), ID(id), SceneManager(mgr), TriangleSelector(0), AutomaticCullingState(EAC_BOX), IsVisible(true), DebugDataVisible(EDS_OFF), IsDebugObject(false) { - if (Parent) - Parent->addChild(this); + if (parent) + parent->addChild(this); updateAbsolutePosition(); }