Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
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
Niflib
Commits
9fef3a1f
Commit
9fef3a1f
authored
13 years ago
by
Alecu100
Browse files
Options
Downloads
Patches
Plain Diff
made more changes to the complex shape to prepare it for skyrim and fallout 3 support
parent
4b6e8837
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ComplexShape.h
+1
-2
1 addition, 2 deletions
include/ComplexShape.h
src/ComplexShape.cpp
+10
-3
10 additions, 3 deletions
src/ComplexShape.cpp
with
11 additions
and
5 deletions
include/ComplexShape.h
+
1
−
2
View file @
9fef3a1f
...
...
@@ -182,8 +182,7 @@ public:
int
max_bones_per_partition
=
4
,
bool
stripify
=
false
,
bool
tangent_space
=
false
,
float
min_vertex_weight
=
0.001
f
,
bool
use_dismember_partitions
=
false
float
min_vertex_weight
=
0.001
f
)
const
;
/*
...
...
This diff is collapsed.
Click to expand it.
src/ComplexShape.cpp
+
10
−
3
View file @
9fef3a1f
...
...
@@ -698,17 +698,24 @@ void ComplexShape::Merge( NiAVObject * root ) {
//Done Merging
}
Ref
<
NiAVObject
>
ComplexShape
::
Split
(
NiNode
*
parent
,
Matrix44
&
transform
,
int
max_bones_per_partition
,
bool
stripify
,
bool
tangent_space
,
float
min_vertex_weight
,
bool
use_dismember_partitions
)
const
{
Ref
<
NiAVObject
>
ComplexShape
::
Split
(
NiNode
*
parent
,
Matrix44
&
transform
,
int
max_bones_per_partition
,
bool
stripify
,
bool
tangent_space
,
float
min_vertex_weight
)
const
{
//Make sure parent is not NULL
if
(
parent
==
NULL
)
{
throw
runtime_error
(
"A parent is necessary to split a complex shape."
);
}
if
(
use_dismember_partitions
==
true
)
{
if
(
dismemberPartitionsFaces
.
size
()
!=
faces
.
size
())
{
bool
use_dismember_partitions
=
false
;
if
(
dismemberPartitionsFaces
.
size
()
>
0
)
{
if
(
dismemberPartitionsFaces
.
size
()
!=
faces
.
size
()
)
{
throw
runtime_error
(
"The number of faces mapped to skin partitions is different from the actual face count."
);
}
if
(
dismemberPartitionsBodyParts
.
size
()
==
0
)
{
throw
runtime_error
(
"The number of dismember partition body parts can't be 0."
);
}
use_dismember_partitions
=
true
;
}
//There will be one NiTriShape per property group
...
...
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