Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
freecad_x3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
freecad_x3d
Commits
5a4e5e91
Commit
5a4e5e91
authored
Apr 16, 2021
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bug fix, related to previous changes
parent
01577f6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
x3d_step_assy3.py
x3d_step_assy3.py
+6
-3
No files found.
x3d_step_assy3.py
View file @
5a4e5e91
...
@@ -999,8 +999,11 @@ def prepareX3dExport(freecadObjects, fname=""):
...
@@ -999,8 +999,11 @@ def prepareX3dExport(freecadObjects, fname=""):
if
(
not
o
.
ViewObject
)
or
(
o
.
ViewObject
.
Visibility
):
if
(
not
o
.
ViewObject
)
or
(
o
.
ViewObject
.
Visibility
):
if
hasattr
(
o
,
"Shape"
):
if
hasattr
(
o
,
"Shape"
):
color_set
=
set
()
color_set
=
set
()
if
o
.
ViewObject
:
try
:
for
clr
in
o
.
ViewObject
.
DiffuseColor
:
dc
=
o
.
ViewObject
.
DiffuseColor
except
AttributeError
:
continue
for
clr
in
dc
:
color_set
.
add
(
clr
)
color_set
.
add
(
clr
)
if
(
len
(
color_set
)
>
1
):
# process multi-color objects
if
(
len
(
color_set
)
>
1
):
# process multi-color objects
col_list
=
list
(
color_set
)
col_list
=
list
(
color_set
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment