Revision: 2755
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2755&view=rev
Author: ulteq
Date: 2012-05-29 20:14:22 +0000 (Tue, 29 May 2012)
Log Message:
-----------
fix for closed splines
Modified Paths:
--------------
trunk/source/main/gfx/camera/CameraBehaviorVehicleSpline.cpp
Modified: trunk/source/main/gfx/camera/CameraBehaviorVehicleSpline.cpp
===================================================================
--- trunk/source/main/gfx/camera/CameraBehaviorVehicleSpline.cpp
2012-05-29 17:33:46 UTC (rev 2754)
+++ trunk/source/main/gfx/camera/CameraBehaviorVehicleSpline.cpp
2012-05-29 20:14:22 UTC (rev 2755)
@@ -182,14 +182,14 @@
splineNodes.push_back(&(*it)->nodes[(*it)->cameraRail[i]]);
}
}
+ }
- Vector3 firstPoint = spline->getPoint(0);
- Vector3 lastPoint = spline->getPoint(spline->getNumPoints() -
1);
+ Vector3 firstPoint = spline->getPoint(0);
+ Vector3 lastPoint = spline->getPoint(spline->getNumPoints() - 1);
- if ( firstPoint.distance(lastPoint) < 1.0f )
- {
- splineClosed = true;
- }
+ if ( firstPoint.distance(lastPoint) < 1.0f )
+ {
+ splineClosed = true;
}
for (int i = 1; i < spline->getNumPoints(); i++)
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel