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(); }