Revision: 2762
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2762&view=rev
Author:   ulteq
Date:     2012-05-30 21:52:00 +0000 (Wed, 30 May 2012)
Log Message:
-----------
-Feature: skeleton view on linkedBeams gets auto updated now

Modified Paths:
--------------
    trunk/source/main/physics/Beam.cpp

Modified: trunk/source/main/physics/Beam.cpp
===================================================================
--- trunk/source/main/physics/Beam.cpp  2012-05-30 20:27:32 UTC (rev 2761)
+++ trunk/source/main/physics/Beam.cpp  2012-05-30 21:52:00 UTC (rev 2762)
@@ -1940,10 +1940,12 @@
                if (it->lockTruck)
                {
                        it->lockTruck->determineLinkedBeams();
+                       it->lockTruck->hideSkeleton(it->lockTruck->skeleton==2, 
false);
 
                        for (std::list<Beam*>::iterator it_truck = 
it->lockTruck->linkedBeams.begin(); it_truck != 
it->lockTruck->linkedBeams.end(); ++it)
                        {
                                (*it_truck)->determineLinkedBeams();
+                               
(*it_truck)->hideSkeleton((*it_truck)->skeleton==2, false);
                        }
                }
                it->beam->mSceneNode->detachAllObjects();
@@ -5001,6 +5003,14 @@
                        for (std::list<Beam*>::iterator it = 
linkedBeams.begin(); it != linkedBeams.end(); ++it)
                        {
                                (*it)->determineLinkedBeams();
+
+                               if (skeleton && this != (*it) && 
!(*it)->skeleton)
+                               {
+                                       (*it)->showSkeleton(true, skeleton==2, 
false);
+                               } else if (skeleton && this != (*it) && 
(*it)->skeleton)
+                               {
+                                       (*it)->hideSkeleton(skeleton==2, false);
+                               }
                        }
                }
        }

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rigsofrods-devel mailing list
Rigsofrods-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to