Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
vEXP
Commits
c9edfee6
Commit
c9edfee6
authored
May 14, 2020
by
legoc
Browse files
Delete line by removing from parent
parent
f01f38db
Changes
2
Hide whitespace changes
Inline
Side-by-side
js/client/utils/shapes/energy-line.js
View file @
c9edfee6
...
...
@@ -137,6 +137,8 @@ class EnergyLine extends TrajectoryLine {
* Remove this trajectory properly.
*/
destroy
()
{
this
.
_parent
.
remove
(
this
.
_group
);
this
.
_line
.
destroy
();
for
(
let
d
of
this
.
_deltaSphereGroup
.
children
)
{
...
...
js/client/utils/shapes/hkl-line.js
View file @
c9edfee6
...
...
@@ -128,11 +128,12 @@ class HKLLine extends TrajectoryLine {
* Remove this trajectory properly.
*/
destroy
()
{
this
.
_parent
.
remove
(
this
.
_group
);
this
.
_lineSphereGeometry
.
dispose
();
this
.
_lineMaterial
.
dispose
();
this
.
_sphereGeometry
.
dispose
();
this
.
_sphereMaterial
.
dispose
();
}
}
...
...
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