use of gaiasky.scenegraph.Invisible in project gaiasky by langurmonkey.
the class KeyframesWindow method clean.
private void clean(boolean cleanKeyframesList, boolean cleanModel) {
// Clean camera
IFocus focus = GaiaSky.instance.getICamera().getFocus();
if (focus instanceof Invisible && focus.getName().startsWith("Keyframe")) {
EventManager.publish(Event.FOCUS_CHANGE_CMD, this, Settings.settings.scene.homeObject);
EventManager.publish(Event.CAMERA_MODE_CMD, this, CameraManager.CameraMode.FREE_MODE);
}
if (cleanKeyframesList)
keyframes.clear();
notice.clearActor();
namesCells.clear();
secondsCells.clear();
keyframesTable.clearChildren();
nameInput.setText("");
secondsInput.setText("1.0");
if (cleanModel)
GaiaSky.postRunnable(() -> keyframesPathObject.clear());
}