Revision: 7195 http://playerstage.svn.sourceforge.net/playerstage/?rev=7195&view=rev Author: rtv Date: 2008-12-08 06:42:11 +0000 (Mon, 08 Dec 2008)
Log Message: ----------- removed debug code that caused warnings Modified Paths: -------------- code/stage/trunk/libstage/model.cc Modified: code/stage/trunk/libstage/model.cc =================================================================== --- code/stage/trunk/libstage/model.cc 2008-12-08 06:37:47 UTC (rev 7194) +++ code/stage/trunk/libstage/model.cc 2008-12-08 06:42:11 UTC (rev 7195) @@ -567,22 +567,7 @@ // should one day do all this with affine transforms for neatness? inline stg_pose_t StgModel::LocalToGlobal( stg_pose_t pose ) { - stg_pose_t gpose = pose_sum( pose_sum( GetGlobalPose(), geom.pose ), pose ); - - if( isnan(gpose.x) || isnan(gpose.y) | isnan(gpose.z) || isnan(gpose.a ) ) - { - stg_pose_t g = GetGlobalPose(); - stg_pose_t p = parent ? parent->GetPose() : stg_pose_t(); - - printf( "model %p %s gpose BAD [%.2f %.2f %.2f %.2f] pose [%.2f %.2f %.2f %.2f] globalpose [%.2f %.2f %.2f %.2f] parent [%.2f %.2f %.2f %.2f] \n", - this, token, gpose.x, gpose.y, gpose.z, gpose.a, - pose.x, pose.y, pose.z, pose.a, - g.x, g.y, g.z, g.a, - p.x, p.y, p.z, p.a ); - return gpose; - - } - //return pose_sum( pose_sum( GetGlobalPose(), geom.pose ), pose ); + return pose_sum( pose_sum( GetGlobalPose(), geom.pose ), pose ); } void StgModel::MapWithChildren() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit