Revision: 8560
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8560&view=rev
Author:   hsujohnhsu
Date:     2010-02-27 01:22:24 +0000 (Sat, 27 Feb 2010)

Log Message:
-----------
fixing ctrl-click to select over gui with new ogre

Modified Paths:
--------------
    code/gazebo/trunk/server/rendering/OgreAdaptor.cc

Modified: code/gazebo/trunk/server/rendering/OgreAdaptor.cc
===================================================================
--- code/gazebo/trunk/server/rendering/OgreAdaptor.cc   2010-02-20 01:20:25 UTC 
(rev 8559)
+++ code/gazebo/trunk/server/rendering/OgreAdaptor.cc   2010-02-27 01:22:24 UTC 
(rev 8560)
@@ -521,14 +521,14 @@
 
   for (iter = result.begin(); iter != result.end(); iter++)
   {
+    // is the result a MovableObject
     if (iter->movable)
     {
-      //OgreVisual *vis = 
dynamic_cast<OgreVisual*>(iter->movable->getUserObject());
-      OgreVisual *vis = 
Ogre::any_cast<OgreVisual*>(iter->movable->getUserAny());
+      OgreVisual* const* vis = 
Ogre::any_cast<OgreVisual*>(&iter->movable->getUserAny());
 
-      if (vis && vis->GetOwner())
+      if (vis && (*vis)->GetOwner())
       {
-        entity = vis->GetOwner();
+        entity = (*vis)->GetOwner();
         if (!entity)
           continue;
 


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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to