Changed the ReferenceFrame enums to be RELEATIVE and ABSOLUTE, and
deprecated the RELATIVE_TO_ABSOLUTE and RELATIVE_TO_PARENTS.
This commit is contained in:
@@ -89,13 +89,18 @@ class SG_EXPORT Transform : public Group
|
||||
|
||||
enum ReferenceFrame
|
||||
{
|
||||
RELATIVE_TO_PARENTS,
|
||||
RELATIVE_TO_ABSOLUTE
|
||||
RELATIVE,
|
||||
ABSOLUTE
|
||||
#ifdef USE_DEPRECATED_API
|
||||
,
|
||||
RELATIVE_TO_PARENTS=RELATIVE,
|
||||
RELATIVE_TO_ABSOLUTE=ABSOLUTE,
|
||||
#endif
|
||||
};
|
||||
|
||||
/** Set the transform's ReferenceFrame, either to be relative to its
|
||||
* parent reference frame, or relative to an absolute coordinate
|
||||
* frame. RELATIVE_TO_PARENTS is the default.
|
||||
* frame. RELATIVE is the default.
|
||||
* Note: Setting the ReferenceFrame to be RELATIVE_TO_ABSOLUTE will
|
||||
* also set the CullingActive flag on the transform, and hence all
|
||||
* of its parents, to false, thereby disabling culling of it and
|
||||
@@ -111,7 +116,7 @@ class SG_EXPORT Transform : public Group
|
||||
|
||||
virtual bool computeLocalToWorldMatrix(Matrix& matrix,NodeVisitor*) const
|
||||
{
|
||||
if (_referenceFrame==RELATIVE_TO_PARENTS)
|
||||
if (_referenceFrame==RELATIVE)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -124,7 +129,7 @@ class SG_EXPORT Transform : public Group
|
||||
|
||||
virtual bool computeWorldToLocalMatrix(Matrix& matrix,NodeVisitor*) const
|
||||
{
|
||||
if (_referenceFrame==RELATIVE_TO_PARENTS)
|
||||
if (_referenceFrame==RELATIVE)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user