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
50bbabdc
Commit
50bbabdc
authored
13 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
export objects in predictable order
parent
dee6d90d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io_scene_x3d/export_x3d.py
+3
-3
3 additions, 3 deletions
io_scene_x3d/export_x3d.py
with
3 additions
and
3 deletions
io_scene_x3d/export_x3d.py
+
3
−
3
View file @
50bbabdc
...
@@ -92,7 +92,7 @@ def build_hierarchy(objects):
...
@@ -92,7 +92,7 @@ def build_hierarchy(objects):
parent
=
parent
.
parent
parent
=
parent
.
parent
return
parent
return
parent
for
obj
in
objects
_set
:
for
obj
in
objects
:
par_lookup
.
setdefault
(
test_parent
(
obj
.
parent
),
[]).
append
((
obj
,
[]))
par_lookup
.
setdefault
(
test_parent
(
obj
.
parent
),
[]).
append
((
obj
,
[]))
for
parent
,
children
in
par_lookup
.
items
():
for
parent
,
children
in
par_lookup
.
items
():
...
@@ -1181,9 +1181,9 @@ def export(file,
...
@@ -1181,9 +1181,9 @@ def export(file,
ident
=
'
\t\t
'
ident
=
'
\t\t
'
if
use_selection
:
if
use_selection
:
objects
=
(
obj
for
obj
in
scene
.
objects
if
obj
.
is_visible
(
scene
)
and
o
.
select
)
objects
=
[
obj
for
obj
in
scene
.
objects
if
obj
.
is_visible
(
scene
)
and
o
.
select
]
else
:
else
:
objects
=
(
obj
for
obj
in
scene
.
objects
if
obj
.
is_visible
(
scene
)
)
objects
=
[
obj
for
obj
in
scene
.
objects
if
obj
.
is_visible
(
scene
)
]
if
use_hierarchy
:
if
use_hierarchy
:
objects_hierarchy
=
build_hierarchy
(
objects
)
objects_hierarchy
=
build_hierarchy
(
objects
)
...
...
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