Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CGoGN
CGoGN
Commits
68f0b374
Commit
68f0b374
authored
Jul 28, 2011
by
Maire Nicolas
Browse files
Autre petite correction dans clippingShader.
parent
cf57535b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Utils/clippingShader.cpp
View file @
68f0b374
...
...
@@ -144,7 +144,7 @@ void ClippingShader::deleteClipPlane(unsigned int id)
// Rearrange planes arrays
m_clipPlanes
.
erase
(
m_clipPlanes
.
begin
()
+
m_clipPlanesIds
[
id
].
index
);
for
(
size_t
i
;
i
<
m_clipPlanesIds
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
m_clipPlanesIds
.
size
();
i
++
)
{
if
(
m_clipPlanesIds
[
i
].
index
>
m_clipPlanesIds
[
id
].
index
)
m_clipPlanesIds
[
i
].
index
-=
1
;
...
...
@@ -450,7 +450,7 @@ void ClippingShader::deleteClipSphere(unsigned int id)
// Rearrange spheres arrays
m_clipSpheres
.
erase
(
m_clipSpheres
.
begin
()
+
m_clipSpheresIds
[
id
].
index
);
for
(
size_t
i
;
i
<
m_clipSpheresIds
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
m_clipSpheresIds
.
size
();
i
++
)
{
if
(
m_clipSpheresIds
[
i
].
index
>
m_clipSpheresIds
[
id
].
index
)
m_clipSpheresIds
[
i
].
index
-=
1
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment