Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nifplg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
nifplg
Commits
392e13ac
Commit
392e13ac
authored
17 years ago
by
Tazpn
Browse files
Options
Downloads
Patches
Plain Diff
Add Veryxrv's commit. Still needs investigation to make sure MW and Civ4 are not effected.
parent
7770d1e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NifExport/Animation.cpp
+14
-2
14 additions, 2 deletions
NifExport/Animation.cpp
with
14 additions
and
2 deletions
NifExport/Animation.cpp
+
14
−
2
View file @
392e13ac
...
...
@@ -144,6 +144,16 @@ void Exporter::InitializeTimeController(NiTimeControllerRef ctrl, NiNodeRef pare
NiNodeRef
Exporter
::
createAccumNode
(
NiNodeRef
parent
,
INode
*
node
)
{
//
//Tweak by veryxRV
//
NiNodeRef
root
=
parent
->
GetParent
();
NiNodeRef
temp
;
while
(
root
->
GetParent
()
!=
NULL
)
{
temp
=
root
->
GetParent
();
root
=
temp
;
}
NiNodeRef
accumNode
;
bool
isTracked
=
isNodeTracked
(
node
);
if
(
!
Exporter
::
mAllowAccum
||
(
!
isTracked
&&
!
isSkeletonRoot
(
node
)))
...
...
@@ -178,10 +188,12 @@ NiNodeRef Exporter::createAccumNode(NiNodeRef parent, INode *node)
vector
<
NiNodeRef
>
children
;
getChildNodes
(
node
,
children
);
ctrl
->
SetExtraTargets
(
children
);
Exporter
::
InitializeTimeController
(
ctrl
,
parent
);
//Changed parent to root for ingame compatibility
Exporter
::
InitializeTimeController
(
ctrl
,
root
);
}
NiControllerManagerRef
mgr
=
new
NiControllerManager
();
Exporter
::
InitializeTimeController
(
mgr
,
parent
);
//Changed parent to root for ingame compatibility
Exporter
::
InitializeTimeController
(
mgr
,
root
);
// Export Animation now
doAnimExport
(
mgr
,
node
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment