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
a13a093f
Commit
a13a093f
authored
11 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
style cleanup - long lines
parent
77f26b16
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_fbx/import_fbx.py
+21
-6
21 additions, 6 deletions
io_scene_fbx/import_fbx.py
with
21 additions
and
6 deletions
io_scene_fbx/import_fbx.py
+
21
−
6
View file @
a13a093f
...
...
@@ -332,7 +332,7 @@ def blen_read_geom_array_mapped_poly(
print
(
"
warning layer %r ref type unsupported: %r
"
,
(
descr
,
fbx_layer_ref
))
else
:
print
(
"
warning layer %r mapping type unsupported: %r
"
,
(
descr
,
fbx_layer_mapping
))
return
False
...
...
@@ -744,7 +744,10 @@ def load(operator, context, filepath="",
ok
=
True
else
:
ok
=
False
for
fbx_lnk
,
fbx_lnk_item
,
fbx_lnk_type
in
connection_filter_reverse
(
fbx_uuid
,
None
):
for
(
fbx_lnk
,
fbx_lnk_item
,
fbx_lnk_type
)
in
connection_filter_reverse
(
fbx_uuid
,
None
):
if
fbx_lnk_type
.
props
[
0
]
!=
b
'
OO
'
:
continue
if
not
isinstance
(
fbx_lnk_item
,
bpy
.
types
.
ID
):
...
...
@@ -774,7 +777,10 @@ def load(operator, context, filepath="",
if
fbx_item
[
1
]
is
None
:
continue
# no object loaded.. ignore
for
fbx_lnk
,
fbx_lnk_item
,
fbx_lnk_type
in
connection_filter_forward
(
fbx_uuid
,
b
'
Model
'
):
for
(
fbx_lnk
,
fbx_lnk_item
,
fbx_lnk_type
)
in
connection_filter_forward
(
fbx_uuid
,
b
'
Model
'
):
fbx_item
[
1
].
parent
=
fbx_lnk_item
_
();
del
_
...
...
@@ -800,10 +806,16 @@ def load(operator, context, filepath="",
continue
mesh
=
fbx_table_nodes
[
fbx_uuid
][
1
]
for
fbx_lnk
,
fbx_lnk_item
,
fbx_lnk_type
in
connection_filter_forward
(
fbx_uuid
,
b
'
Model
'
):
for
(
fbx_lnk
,
fbx_lnk_item
,
fbx_lnk_type
)
in
connection_filter_forward
(
fbx_uuid
,
b
'
Model
'
):
# link materials
fbx_lnk_uuid
=
elem_uuid
(
fbx_lnk
)
for
fbx_lnk_material
,
material
,
fbx_lnk_material_type
in
connection_filter_reverse
(
fbx_lnk_uuid
,
b
'
Material
'
):
for
(
fbx_lnk_material
,
material
,
fbx_lnk_material_type
)
in
connection_filter_reverse
(
fbx_lnk_uuid
,
b
'
Material
'
):
mesh
.
materials
.
append
(
material
)
_
();
del
_
...
...
@@ -819,7 +831,10 @@ def load(operator, context, filepath="",
continue
material
=
fbx_table_nodes
[
fbx_uuid
][
1
]
for
fbx_lnk
,
image
,
fbx_lnk_type
in
connection_filter_reverse
(
fbx_uuid
,
b
'
Texture
'
):
for
(
fbx_lnk
,
image
,
fbx_lnk_type
)
in
connection_filter_reverse
(
fbx_uuid
,
b
'
Texture
'
):
if
use_cycles
:
if
fbx_lnk_type
.
props
[
0
]
==
b
'
OP
'
:
lnk_type
=
fbx_lnk_type
.
props
[
3
]
...
...
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