Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1243 - trunk/Interface
- Date: Mon, 4 Dec 2006 16:09:48 -0700 (MST)
Author: bigler
Date: Mon Dec 4 16:09:47 2006
New Revision: 1243
Modified:
trunk/Interface/CameraPath.cc
trunk/Interface/CameraPath.h
Log:
Fixed warnings with respect to knot being a float. I'm not sure why
it was a float. It was written to a file as a unsigned int and read
as a float. This should get rid of the warning.
Modified: trunk/Interface/CameraPath.cc
==============================================================================
--- trunk/Interface/CameraPath.cc (original)
+++ trunk/Interface/CameraPath.cc Mon Dec 4 16:09:47 2006
@@ -84,7 +84,7 @@
interface->unregisterCallback(handle);
}
-void CameraPath::addKnot(Real const frame, BasicCameraData const& data)
+void CameraPath::addKnot(unsigned int const frame, BasicCameraData const&
data)
{
// Force a control point at frame zero (prevents camera from going berzerk
// on playback)
@@ -115,7 +115,7 @@
max_frame=0;
unsigned int nknots=0;
while (nknots<total_knots) {
- Real frame;
+ unsigned int frame;
Real ex, ey, ez;
Real lx, ly, lz;
Real ux, uy, uz;
Modified: trunk/Interface/CameraPath.h
==============================================================================
--- trunk/Interface/CameraPath.h (original)
+++ trunk/Interface/CameraPath.h Mon Dec 4 16:09:47 2006
@@ -29,7 +29,7 @@
void animate(void);
void reset(void) { frame=0; }
- void addKnot(Real const frame, BasicCameraData const& data);
+ void addKnot(unsigned int const frame, BasicCameraData const& data);
void readKnots(void);
void writeKnots(void) const;
- [MANTA] r1243 - trunk/Interface, bigler, 12/04/2006
Archive powered by MHonArc 2.6.16.