aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorJuan Linietsky2017-11-26 15:13:35 -0300
committerGitHub2017-11-26 15:13:35 -0300
commit22415e5a3168b3dee3cf95d0697ca548bf04d8bf (patch)
treee84493b20284d7357d7bea3402f0349bdb06de51 /editor/plugins/spatial_editor_plugin.h
parent9cf44c1c53f03b67143e606ab3d56680d73ac2c9 (diff)
parentd0e09d84f085c5bffdd5ad06d335be20c246e954 (diff)
downloadgodot-22415e5a3168b3dee3cf95d0697ca548bf04d8bf.tar.gz
godot-22415e5a3168b3dee3cf95d0697ca548bf04d8bf.tar.zst
godot-22415e5a3168b3dee3cf95d0697ca548bf04d8bf.zip
Merge pull request #12572 from RandomShaper/onion-skinning
Onion skinning
Diffstat (limited to '')
-rw-r--r--editor/plugins/spatial_editor_plugin.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index 58c464c3e..ab26a70f7 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -311,6 +311,7 @@ protected:
static void _bind_methods();
public:
+ void update_surface() { surface->update(); }
void update_transform_gizmo_view();
void set_can_preview(Camera *p_preview);
@@ -389,6 +390,8 @@ class SpatialEditor : public VBoxContainer {
GDCLASS(SpatialEditor, VBoxContainer);
public:
+ static const unsigned int VIEWPORTS_COUNT = 4;
+
enum ToolMode {
TOOL_MODE_SELECT,
@@ -403,8 +406,6 @@ public:
};
private:
- static const unsigned int VIEWPORTS_COUNT = 4;
-
EditorNode *editor;
EditorSelection *editor_selection;