[Bf-blender-cvs] [ed9bd6b] soc-2014-bge: gameengine: KX_Scene comment cleanup
Ines Almeida
noreply at git.blender.org
Fri Jul 4 21:43:05 CEST 2014
Commit: ed9bd6b95d29273b2cc2e96d05210ebba7a3a3cf
Author: Ines Almeida
Date: Tue Jul 1 10:00:20 2014 +0100
https://developer.blender.org/rBed9bd6b95d29273b2cc2e96d05210ebba7a3a3cf
gameengine: KX_Scene comment cleanup
===================================================================
M source/gameengine/Ketsji/KX_Scene.cpp
===================================================================
diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp
index 0dfdb3d..42fcb21 100644
--- a/source/gameengine/Ketsji/KX_Scene.cpp
+++ b/source/gameengine/Ketsji/KX_Scene.cpp
@@ -865,8 +865,6 @@ SCA_IObject* KX_Scene::AddReplicaObject(class CValue* originalobject,
m_map_gameobject_to_replica.clear();
m_groupGameObjects.clear();
- // todo: place a timebomb in the object, for temporarily objects :)
- // lifespan of zero means 'this object lives forever'
KX_GameObject* originalobj = (KX_GameObject*) originalobject;
KX_GameObject* parentobj = (KX_GameObject*) parentobject;
@@ -875,9 +873,10 @@ SCA_IObject* KX_Scene::AddReplicaObject(class CValue* originalobject,
// lets create a replica
KX_GameObject* replica = (KX_GameObject*) AddNodeReplicaObject(NULL,originalobj);
+ // add a timebomb to this object
+ // lifespan of zero means 'this object lives forever'
if (lifespan > 0)
{
- // add a timebomb to this object
// for now, convert between so called frames and realtime
m_tempObjectList->Add(replica->AddRef());
// this convert the life from frames to sort-of seconds, hard coded 0.02 that assumes we have 50 frames per second
@@ -913,7 +912,6 @@ SCA_IObject* KX_Scene::AddReplicaObject(class CValue* originalobject,
// get the rootnode's scale
MT_Vector3 newscale = parentobj->GetSGNode()->GetRootSGParent()->GetLocalScale();
-
// set the replica's relative scale with the rootnode's scale
replica->NodeSetRelativeScale(newscale);
More information about the Bf-blender-cvs
mailing list