Commit 80d80fcf authored by cutealien's avatar cutealien

Add some warnings (just with ELL_DEBUG) to the not working...

Add some warnings (just with ELL_DEBUG) to the not working position/rotation/scale access functions in CDummyTransformationSceneNode so it's at least a little easier figuring out when they are called when hunting troubles.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4266 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5ccc1419
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// For conditions of distribution and use, see copyright notice in irrlicht.h // For conditions of distribution and use, see copyright notice in irrlicht.h
#include "CDummyTransformationSceneNode.h" #include "CDummyTransformationSceneNode.h"
#include "os.h"
namespace irr namespace irr
{ {
...@@ -64,5 +65,41 @@ ISceneNode* CDummyTransformationSceneNode::clone(ISceneNode* newParent, ISceneMa ...@@ -64,5 +65,41 @@ ISceneNode* CDummyTransformationSceneNode::clone(ISceneNode* newParent, ISceneMa
return nb; return nb;
} }
const core::vector3df& CDummyTransformationSceneNode::getScale() const
{
os::Printer::log("CDummyTransformationSceneNode::getScale() does not contain the relative transformation.", ELL_DEBUG);
return RelativeScale;
}
void CDummyTransformationSceneNode::setScale(const core::vector3df& scale)
{
os::Printer::log("CDummyTransformationSceneNode::setScale() does not affect the relative transformation.", ELL_DEBUG);
RelativeScale = scale;
}
const core::vector3df& CDummyTransformationSceneNode::getRotation() const
{
os::Printer::log("CDummyTransformationSceneNode::getRotation() does not contain the relative transformation.", ELL_DEBUG);
return RelativeRotation;
}
void CDummyTransformationSceneNode::setRotation(const core::vector3df& rotation)
{
os::Printer::log("CDummyTransformationSceneNode::setRotation() does not affect the relative transformation.", ELL_DEBUG);
RelativeRotation = rotation;
}
const core::vector3df& CDummyTransformationSceneNode::getPosition() const
{
os::Printer::log("CDummyTransformationSceneNode::getPosition() does not contain the relative transformation.", ELL_DEBUG);
return RelativeTranslation;
}
void CDummyTransformationSceneNode::setPosition(const core::vector3df& newpos)
{
os::Printer::log("CDummyTransformationSceneNode::setPosition() does not affect the relative transformation.", ELL_DEBUG);
RelativeTranslation = newpos;
}
} // end namespace scene } // end namespace scene
} // end namespace irr } // end namespace irr
...@@ -42,6 +42,15 @@ namespace scene ...@@ -42,6 +42,15 @@ namespace scene
private: private:
// TODO: We can add least add some warnings to find troubles faster until we have
// fixed bug id 2318691.
virtual const core::vector3df& getScale() const;
virtual void setScale(const core::vector3df& scale);
virtual const core::vector3df& getRotation() const;
virtual void setRotation(const core::vector3df& rotation);
virtual const core::vector3df& getPosition() const;
virtual void setPosition(const core::vector3df& newpos);
core::matrix4 RelativeTransformationMatrix; core::matrix4 RelativeTransformationMatrix;
core::aabbox3d<f32> Box; core::aabbox3d<f32> Box;
}; };
......
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