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
Instrument Control
Protos
Nomad 3D
nomad-3d-editor
Commits
33919d78
Commit
33919d78
authored
Mar 08, 2019
by
legoc
Browse files
Attach the reference axes to the real root node
parent
46723388
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/n3d/gui/EditorMenuBar.java
View file @
33919d78
...
...
@@ -2921,19 +2921,15 @@ public class EditorMenuBar extends MenuBar {
// Reference axis list display.
referenceAxisDisplay
=
new
ReferenceAxisListDisplay
();
// Get the root node.
Group
rootNode
=
(
Group
)
Nomad3DEditor
.
getInstance
().
getModel
().
getRoot
().
getSceneNode
();
// We set it at the end of the group so that it is always in front of the components.
rootNode
.
getChildren
().
add
(
referenceAxisDisplay
.
getVisualGroup
());
Nomad3DEditor
.
getInstance
().
getRoot
()
.
getChildren
().
add
(
referenceAxisDisplay
.
getVisualGroup
());
}
private
void
removeReferenceAxes
()
{
if
(
referenceAxisDisplay
!=
null
&&
Nomad3DEditor
.
getInstance
().
getModel
()
!=
null
)
{
// Get the root node and remove the display.
Group
rootNode
=
(
Group
)
Nomad3DEditor
.
getInstance
().
getModel
().
getRoot
().
getSceneNode
();
rootNode
.
getChildren
().
remove
(
referenceAxisDisplay
.
getVisualGroup
());
// Remove the display.
Nomad3DEditor
.
getInstance
().
getRoot
().
getChildren
().
remove
(
referenceAxisDisplay
.
getVisualGroup
());
referenceAxisDisplay
=
null
;
}
}
...
...
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