Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
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
blender
blender-addons
Commits
ea861fa5
Commit
ea861fa5
authored
13 years ago
by
John Phan
Browse files
Options
Downloads
Patches
Plain Diff
error fixed on mesh and armature bones count
parent
670952bb
Branches
Branches containing commit
Tags
v2.63
v2.63a
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io_export_unreal_psk_psa.py
+7
-2
7 additions, 2 deletions
io_export_unreal_psk_psa.py
with
7 additions
and
2 deletions
io_export_unreal_psk_psa.py
+
7
−
2
View file @
ea861fa5
...
@@ -907,6 +907,8 @@ def parse_smooth_groups( mesh ):
...
@@ -907,6 +907,8 @@ def parse_smooth_groups( mesh ):
edge_sharing_list
=
determine_edge_sharing
(
mesh
)
edge_sharing_list
=
determine_edge_sharing
(
mesh
)
#print("faces:",len(mesh.tessfaces))
#print("faces:",len(mesh.tessfaces))
interval
=
math
.
floor
(
len
(
mesh
.
tessfaces
)
/
100
)
interval
=
math
.
floor
(
len
(
mesh
.
tessfaces
)
/
100
)
if
interval
==
0
:
#if the faces are few do this
interval
=
math
.
floor
(
len
(
mesh
.
tessfaces
)
/
10
)
#print("FACES:",len(mesh.tessfaces),"//100 =" "interval:",interval)
#print("FACES:",len(mesh.tessfaces),"//100 =" "interval:",interval)
for
face
in
mesh
.
tessfaces
:
for
face
in
mesh
.
tessfaces
:
#print(dir(face))
#print(dir(face))
...
@@ -1588,8 +1590,11 @@ def find_armature_and_mesh():
...
@@ -1588,8 +1590,11 @@ def find_armature_and_mesh():
else
:
else
:
raise
Error
(
"
No mesh parented to armature
"
)
raise
Error
(
"
No mesh parented to armature
"
)
verbose
(
"
Found mesh: {}
"
.
format
(
mesh
.
name
))
verbose
(
"
Found mesh: {}
"
.
format
(
mesh
.
name
))
if
len
(
armature
.
pose
.
bones
)
==
len
(
mesh
.
vertex_groups
):
print
(
"
Armature and Mesh Vertex Groups matches Ok!
"
)
else
:
raise
Error
(
"
Armature bones:
"
+
str
(
len
(
armature
.
pose
.
bones
))
+
"
Mesh Vertex Groups:
"
+
str
(
len
(
mesh
.
vertex_groups
))
+
"
doesn
'
t match!
"
)
return
armature
,
mesh
return
armature
,
mesh
...
...
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