Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/SceneGraph/SG_Spatial.cpp')
-rw-r--r--source/gameengine/SceneGraph/SG_Spatial.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/gameengine/SceneGraph/SG_Spatial.cpp b/source/gameengine/SceneGraph/SG_Spatial.cpp
index c65542c98ce..a91b462b3ae 100644
--- a/source/gameengine/SceneGraph/SG_Spatial.cpp
+++ b/source/gameengine/SceneGraph/SG_Spatial.cpp
@@ -103,7 +103,7 @@ SetParentRelation(
*/
- void
+ bool
SG_Spatial::
UpdateSpatialData(
const SG_Spatial *parent,
@@ -128,17 +128,16 @@ UpdateSpatialData(
// our world coordinates.
if (!bComputesWorldTransform)
- {
- ComputeWorldTransforms(parent);
- }
+ bComputesWorldTransform = ComputeWorldTransforms(parent);
+
+ return bComputesWorldTransform;
}
-void SG_Spatial::ComputeWorldTransforms(const SG_Spatial *parent)
+bool SG_Spatial::ComputeWorldTransforms(const SG_Spatial *parent)
{
- m_parent_relation->UpdateChildCoordinates(this,parent);
+ return m_parent_relation->UpdateChildCoordinates(this,parent);
}
-
/**
* Position and translation methods
*/