From 21a7f5631b52f3456b21592d874dd63dd190d633 Mon Sep 17 00:00:00 2001 From: Tazpn <tazpn@users.sourceforge.net> Date: Sat, 8 Jul 2006 20:43:54 +0000 Subject: [PATCH] Add a default value for the new controller so that its active. --- niflib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/niflib.cpp b/niflib.cpp index 622a49f7..223fd11b 100644 --- a/niflib.cpp +++ b/niflib.cpp @@ -822,6 +822,7 @@ void MergeNifTrees( const Ref<NiNode> & target, const Ref<NiControllerSequence> if ( ctlr == NULL ) { throw runtime_error ("Non-NiSingleInterpolatorController controller found in KF file."); } + ctlr->SetFlags(8); // at least make the controller active node->AddController( StaticCast<NiTimeController>(ctlr) ); } @@ -839,7 +840,7 @@ void MergeNifTrees( const Ref<NiNode> & target, const Ref<NiControllerSequence> ctlr->SetStartTime( right->GetStartTime() ); ctlr->SetStopTime( right->GetStopTime() ); ctlr->SetFrequency( right->GetFrequency() ); - ctlr->SetPhase( 0.0f ); //TODO: Is phase somewhere in NiControllerSequence? + ctlr->SetPhase( 0.0f ); //TODO: Is phase somewhere in NiControllerSequence? } } } -- GitLab