Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
27b9d013
Commit
27b9d013
authored
Aug 24, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3D-viewer: fix Bug #1360784 (3D viewer displays only first wrl shape)
parent
6270af66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
3d_draw.cpp
3d-viewer/3d_draw.cpp
+5
-1
No files found.
3d-viewer/3d_draw.cpp
View file @
27b9d013
...
...
@@ -1421,7 +1421,6 @@ void MODULE::ReadAndInsert3DComponentShape( EDA_3D_CANVAS* glcanvas,
{
// Read from disk and draws the footprint 3D shapes if exists
S3D_MASTER
*
shape3D
=
m_3D_Drawings
;
double
zpos
=
glcanvas
->
GetPrm3DVisu
().
GetModulesZcoord3DIU
(
IsFlipped
()
);
glPushMatrix
();
...
...
@@ -1439,13 +1438,18 @@ void MODULE::ReadAndInsert3DComponentShape( EDA_3D_CANVAS* glcanvas,
glRotatef
(
180.0
,
0.0
,
0.0
,
1.0
);
}
S3D_MASTER
*
shape3D
=
Models
();
for
(
;
shape3D
;
shape3D
=
shape3D
->
Next
()
)
{
shape3D
->
SetLoadNonTransparentObjects
(
aAllowNonTransparentObjects
);
shape3D
->
SetLoadTransparentObjects
(
aAllowTransparentObjects
);
if
(
shape3D
->
Is3DType
(
S3D_MASTER
::
FILE3D_VRML
)
)
{
glPushMatrix
();
shape3D
->
ReadData
();
glPopMatrix
();
}
}
glPopMatrix
();
...
...
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