From 917bd07cae7375d529c7ef27e629accb379ab83d Mon Sep 17 00:00:00 2001
From: Tazpn <tazpn@users.sourceforge.net>
Date: Sat, 22 Sep 2007 16:13:42 +0000
Subject: [PATCH] Fix for Fixes for Bound calculations of objects with a morph
 attached.

---
 NifExport/Animation.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/NifExport/Animation.cpp b/NifExport/Animation.cpp
index 697e842..0bb116a 100644
--- a/NifExport/Animation.cpp
+++ b/NifExport/Animation.cpp
@@ -1250,6 +1250,9 @@ Exporter::Result Exporter::exportGeomMorpherControl(Modifier* mod, vector<Vector
 			ctrl->SetStartTime( 0.0f );
 			ctrl->SetStopTime( FrameToTime( range.Duration()-1 ) );
 			owner->AddController(ctrl);
+
+			// Update model bounds for target of the controller
+			ctrl->UpdateModelBound();
 		}
 	}
 	return Exporter::Ok;
-- 
GitLab