Revision: 6778
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6778&view=rev
Author:   rtv
Date:     2008-07-05 23:44:53 -0700 (Sat, 05 Jul 2008)

Log Message:
-----------
fixed bug 2010171 - where models of uknown type were being created with random 
type. Now Stage bails instead

Modified Paths:
--------------
    code/stage/trunk/libstage/world.cc
    code/stage/trunk/worlds/everything.world
    code/stage/trunk/worlds/irobot.inc

Modified: code/stage/trunk/libstage/world.cc
===================================================================
--- code/stage/trunk/libstage/world.cc  2008-07-06 06:32:02 UTC (rev 6777)
+++ code/stage/trunk/libstage/world.cc  2008-07-06 06:44:53 UTC (rev 6778)
@@ -254,9 +254,9 @@
                
                // find the creator function pointer in the hash table. use the
                // vanilla model if the type is NULL.
-               stg_creator_t creator;
+               stg_creator_t creator = NULL;
                
-               //printf( "creating model of type %s\n", typestr );
+               printf( "creating model of type %s\n", typestr );
 
                if( typestr ) // look up the string in the typetable
                  for( int i=0; i<MODEL_TYPE_COUNT; i++ )

Modified: code/stage/trunk/worlds/everything.world
===================================================================
--- code/stage/trunk/worlds/everything.world    2008-07-06 06:32:02 UTC (rev 
6777)
+++ code/stage/trunk/worlds/everything.world    2008-07-06 06:44:53 UTC (rev 
6778)
@@ -173,3 +173,4 @@
   name "create3"
   pose [-9.000 0.500 0 0]
 )
+

Modified: code/stage/trunk/worlds/irobot.inc
===================================================================
--- code/stage/trunk/worlds/irobot.inc  2008-07-06 06:32:02 UTC (rev 6777)
+++ code/stage/trunk/worlds/irobot.inc  2008-07-06 06:44:53 UTC (rev 6778)
@@ -33,4 +33,6 @@
   color "gray50"
 )
 
-define create roomba( color "gray90" )
\ No newline at end of file
+define create roomba( color "gray90" )
+
+


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to