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
0c7ec221
Commit
0c7ec221
authored
13 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
fix [#28889] FBX only exports action with action groups
parent
4d672aa3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io_scene_fbx/export_fbx.py
+22
-4
22 additions, 4 deletions
io_scene_fbx/export_fbx.py
with
22 additions
and
4 deletions
io_scene_fbx/export_fbx.py
+
22
−
4
View file @
0c7ec221
...
...
@@ -131,6 +131,26 @@ def mat4x4str(mat):
return
'
%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f,%.15f
'
%
tuple
([
f
for
v
in
mat
for
f
in
v
])
def
action_bone_names
(
obj
,
action
):
from
bpy.types
import
PoseBone
names
=
set
()
path_resolve
=
obj
.
path_resolve
for
fcu
in
action
.
fcurves
:
try
:
prop
=
path_resolve
(
fcu
.
data_path
,
False
)
except
:
prop
=
None
if
prop
is
not
None
:
data
=
prop
.
data
if
isinstance
(
data
,
PoseBone
):
names
.
add
(
data
.
name
)
return
names
# ob must be OB_MESH
def
BPyMesh_meshWeight2List
(
ob
,
me
):
'''
Takes a mesh and return its group names and a list of lists, one list per vertex.
...
...
@@ -1781,7 +1801,7 @@ def save_single(operator, scene, filepath="",
fw
(
'
\n\t\t\t\t
TypedIndex: %i
'
%
i
)
fw
(
'
\n\t\t\t
}
'
)
fw
(
'
\n\t\t
}
'
)
if
do_shapekeys
:
key_blocks
=
my_mesh
.
blenObject
.
data
.
shape_keys
.
key_blocks
[:]
for
kb
in
key_blocks
[
1
:]:
...
...
@@ -2576,9 +2596,7 @@ Connections: {''')
for
action
in
tmp_actions
:
action_chan_names
=
arm_bone_names
.
intersection
(
set
([
g
.
name
for
g
in
action
.
groups
]))
if
action_chan_names
:
# at least one channel matches.
if
arm_bone_names
.
intersection
(
action_bone_names
(
my_arm
.
blenObject
,
action
)):
# at least one channel matches.
my_arm
.
blenActionList
.
append
(
action
)
tagged_actions
.
append
(
action
.
name
)
tmp_act_count
+=
1
...
...
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