Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeCAD
FreeCAD
Commits
6fe43f96
Commit
6fe43f96
authored
Dec 26, 2012
by
wmayer
Browse files
Merge branch 'master' of
ssh://free-cad.git.sourceforge.net/gitroot/free-cad/free-cad
parents
64cbe873
0d368938
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Gui/View3DInventorViewer.cpp
View file @
6fe43f96
...
...
@@ -525,9 +525,14 @@ void View3DInventorViewer::savePicture(const char* filename, int w, int h,
// if we use transparency then we must not set a background color
switch
(
eBackgroundType
){
case
Current
:
useBackground
=
true
;
cb
=
new
SoCallback
;
cb
->
setCallback
(
clearBuffer
);
if
(
backgroundroot
->
findChild
(
pcBackGround
)
==
-
1
)
{
renderer
.
setBackgroundColor
(
this
->
getBackgroundColor
());
}
else
{
useBackground
=
true
;
cb
=
new
SoCallback
;
cb
->
setCallback
(
clearBuffer
);
}
break
;
case
White
:
renderer
.
setBackgroundColor
(
SbColor
(
1.0
,
1.0
,
1.0
)
);
...
...
@@ -595,9 +600,14 @@ void View3DInventorViewer::savePicture(int w, int h, int eBackgroundType, QImage
// if we use transparency then we must not set a background color
switch
(
eBackgroundType
){
case
Current
:
useBackground
=
true
;
cb
=
new
SoCallback
;
cb
->
setCallback
(
clearBuffer
);
if
(
backgroundroot
->
findChild
(
pcBackGround
)
==
-
1
)
{
renderer
.
setBackgroundColor
(
this
->
getBackgroundColor
());
}
else
{
useBackground
=
true
;
cb
=
new
SoCallback
;
cb
->
setCallback
(
clearBuffer
);
}
break
;
case
White
:
renderer
.
setBackgroundColor
(
SbColor
(
1.0
,
1.0
,
1.0
)
);
...
...
Write
Preview
Supports
Markdown
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