1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Implemented skeleton visibility

Removed code visibility code from popup menu
This commit is contained in:
AndreaCatania
2017-11-22 22:29:27 +01:00
parent 20b07a1fb5
commit 63ec5823d1
9 changed files with 359 additions and 18 deletions

View File

@@ -92,7 +92,7 @@ class SpatialEditorViewport : public Control {
VIEW_DISPLAY_NORMAL,
VIEW_DISPLAY_WIREFRAME,
VIEW_DISPLAY_OVERDRAW,
VIEW_DISPLAY_SHADELESS,
VIEW_DISPLAY_SHADELESS
};
public:
@@ -487,7 +487,8 @@ private:
MENU_VIEW_GRID,
MENU_VIEW_CAMERA_SETTINGS,
MENU_LOCK_SELECTED,
MENU_UNLOCK_SELECTED
MENU_UNLOCK_SELECTED,
MENU_VISIBILITY_SKELETON
};
Button *tool_button[TOOL_MAX];
@@ -590,7 +591,10 @@ public:
Ref<ArrayMesh> get_scale_gizmo(int idx) const { return scale_gizmo[idx]; }
Ref<ArrayMesh> get_scale_plane_gizmo(int idx) const { return scale_plane_gizmo[idx]; }
int get_skeleton_visibility_state() const;
void update_transform_gizmo();
void update_all_gizmos();
void select_gizmo_highlight_axis(int p_axis);
void set_custom_camera(Node *p_camera) { custom_camera = p_camera; }