Commit daedda85 authored by bitplane's avatar bitplane

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
parent 6f4a9f92
Changes in version 1.5 (... 2008) Changes in version 1.5 (... 2008)
- Fixed a performance bug in ISceneNode constructor reported by izhbq412
- Added volume light scene node - Added volume light scene node
- Better fix for hires timers on dual core machines by RogerBorg - Better fix for hires timers on dual core machines by RogerBorg
......
...@@ -40,12 +40,12 @@ namespace scene ...@@ -40,12 +40,12 @@ namespace scene
const core::vector3df& rotation = core::vector3df(0,0,0), const core::vector3df& rotation = core::vector3df(0,0,0),
const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f)) const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f))
: RelativeTranslation(position), RelativeRotation(rotation), RelativeScale(scale), : 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), AutomaticCullingState(EAC_BOX), IsVisible(true),
DebugDataVisible(EDS_OFF), IsDebugObject(false) DebugDataVisible(EDS_OFF), IsDebugObject(false)
{ {
if (Parent) if (parent)
Parent->addChild(this); parent->addChild(this);
updateAbsolutePosition(); updateAbsolutePosition();
} }
......
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