From 83645481ff6df2e6a53344984a9d815239e41c7f Mon Sep 17 00:00:00 2001
From: Shon Ferguson <shonferg@users.sourceforge.net>
Date: Sat, 24 Jun 2006 05:07:54 +0000
Subject: [PATCH] Last fix wasn't quite correct.

---
 gen/obj_impl.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gen/obj_impl.cpp b/gen/obj_impl.cpp
index 9c8ead89..f064ec56 100644
--- a/gen/obj_impl.cpp
+++ b/gen/obj_impl.cpp
@@ -6252,7 +6252,7 @@ void NiKeyframeData::InternalRead( istream& in, list<uint> & link_stack, unsigne
 void NiKeyframeData::InternalWrite( ostream& out, map<NiObjectRef,uint> link_map, unsigned int version, unsigned int user_version ) const {
 	AKeyedData::Write( out, link_map, version, user_version );
 	if ( rotationType == XYZ_ROTATION_KEY ) {
-		numRotationKeys = uint(xyzRotations.size());
+		numRotationKeys = 1;
 	} else {
 		numRotationKeys = uint(quaternionKeys.size());
 	}
@@ -6304,7 +6304,7 @@ std::string NiKeyframeData::InternalAsString( bool verbose ) const {
 	stringstream out;
 	out << AKeyedData::asString();
 	if ( rotationType == XYZ_ROTATION_KEY ) {
-		numRotationKeys = uint(xyzRotations.size());
+		numRotationKeys = 1;
 	} else {
 		numRotationKeys = uint(quaternionKeys.size());
 	}
-- 
GitLab