[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20072] trunk/blender/source/gameengine/ SceneGraph: Fix an undefined variable bug detected by valgrind.

Benoit Bolsee benoit.bolsee at online.be
Wed May 6 00:32:16 CEST 2009


Revision: 20072
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20072
Author:   ben2610
Date:     2009-05-06 00:32:15 +0200 (Wed, 06 May 2009)

Log Message:
-----------
Fix an undefined variable bug detected by valgrind.

Modified Paths:
--------------
    trunk/blender/source/gameengine/SceneGraph/SG_Node.cpp
    trunk/blender/source/gameengine/SceneGraph/SG_Spatial.cpp

Modified: trunk/blender/source/gameengine/SceneGraph/SG_Node.cpp
===================================================================
--- trunk/blender/source/gameengine/SceneGraph/SG_Node.cpp	2009-05-05 21:51:54 UTC (rev 20071)
+++ trunk/blender/source/gameengine/SceneGraph/SG_Node.cpp	2009-05-05 22:32:15 UTC (rev 20072)
@@ -46,6 +46,7 @@
 	: SG_Spatial(clientobj,clientinfo,callbacks),
 	m_SGparent(NULL)
 {
+	m_modified = true;
 }
 
 SG_Node::SG_Node(
@@ -55,7 +56,7 @@
 	m_children(other.m_children),
 	m_SGparent(other.m_SGparent)
 {
-	// nothing to do
+	m_modified = true;
 }
 
 SG_Node::~SG_Node()

Modified: trunk/blender/source/gameengine/SceneGraph/SG_Spatial.cpp
===================================================================
--- trunk/blender/source/gameengine/SceneGraph/SG_Spatial.cpp	2009-05-05 21:51:54 UTC (rev 20071)
+++ trunk/blender/source/gameengine/SceneGraph/SG_Spatial.cpp	2009-05-05 22:32:15 UTC (rev 20072)
@@ -58,7 +58,6 @@
 	m_radius(1.0),
 	m_modified(false)
 {
-	SetModified();
 }
 
 SG_Spatial::





More information about the Bf-blender-cvs mailing list