Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender_nif_plugin
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
Container Registry
Model registry
Operate
Environments
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
blender_nif_plugin
Commits
cb1ec597
Commit
cb1ec597
authored
3 years ago
by
Candoran2
Committed by
neomonkeus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added extra warning for too many bones per partition and move warning up.
parent
fc28f567
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io_scene_niftools/modules/nif_export/geometry/mesh/__init__.py
+18
-12
18 additions, 12 deletions
...ene_niftools/modules/nif_export/geometry/mesh/__init__.py
with
18 additions
and
12 deletions
io_scene_niftools/modules/nif_export/geometry/mesh/__init__.py
+
18
−
12
View file @
cb1ec597
...
...
@@ -460,6 +460,24 @@ class Mesh:
if
NifData
.
data
.
version
>=
0x04020100
and
NifOp
.
props
.
skin_partition
:
NifLog
.
info
(
"
Creating skin partition
"
)
# warn on bad config settings
if
game
==
'
OBLIVION
'
:
if
NifOp
.
props
.
pad_bones
:
NifLog
.
warn
(
"
Using padbones on Oblivion export. Disable the pad bones option to get higher quality skin partitions.
"
)
if
game
in
(
'
OBLIVION
'
,
'
FALLOUT_3
'
):
if
NifOp
.
props
.
max_bones_per_partition
<
18
:
NifLog
.
warn
(
"
Using less than 18 bones per partition on Oblivion/Fallout 3 export.
"
"
Set it to 18 to get higher quality skin partitions.
"
)
elif
NifOp
.
props
.
max_bones_per_partition
>
18
:
NifLog
.
warn
(
"
Using more than 18 bones per partition on Oblivion/Fallout 3 export.
"
"
This may cause issues in-game.
"
)
if
game
==
'
SKYRIM
'
:
if
NifOp
.
props
.
max_bones_per_partition
<
24
:
NifLog
.
warn
(
"
Using less than 24 bones per partition on Skyrim export.
"
"
Set it to 24 to get higher quality skin partitions.
"
)
# Skyrim Special Edition has a limit of 80 bones per partition, but export is not yet supported
part_order
=
[
getattr
(
NifFormat
.
BSDismemberBodyPartType
,
face_map
.
name
,
None
)
for
face_map
in
b_obj
.
face_maps
]
part_order
=
[
body_part
for
body_part
in
part_order
if
body_part
is
not
None
]
# override pyffi trishape.update_skin_partition with custom one (that allows ordering)
...
...
@@ -475,18 +493,6 @@ class Mesh:
maximize_bone_sharing
=
(
game
in
(
'
FALLOUT_3
'
,
'
SKYRIM
'
)),
part_sort_order
=
part_order
)
# warn on bad config settings
if
game
==
'
OBLIVION
'
:
if
NifOp
.
props
.
pad_bones
:
NifLog
.
warn
(
"
Using padbones on Oblivion export. Disable the pad bones option to get higher quality skin partitions.
"
)
if
game
in
(
'
OBLIVION
'
,
'
FALLOUT_3
'
):
if
NifOp
.
props
.
max_bones_per_partition
<
18
:
NifLog
.
warn
(
"
Using less than 18 bones per partition on Oblivion/Fallout 3 export.
"
"
Set it to 18 to get higher quality skin partitions.
"
)
if
game
==
'
SKYRIM
'
:
if
NifOp
.
props
.
max_bones_per_partition
<
24
:
NifLog
.
warn
(
"
Using less than 24 bones per partition on Skyrim export.
"
"
Set it to 24 to get higher quality skin partitions.
"
)
if
lostweight
>
NifOp
.
props
.
epsilon
:
NifLog
.
warn
(
f
"
Lost
{
lostweight
:
f
}
in vertex weights while creating a skin partition for Blender object
'
{
b_obj
.
name
}
'
(nif block
'
{
trishape
.
name
}
'
)
"
)
...
...
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