summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorIbrahn Sahir <ibrahn.sahir@gmail.com>2018-09-20 12:27:32 +0100
committerIbrahn Sahir <ibrahn.sahir@gmail.com>2018-09-20 13:06:13 +0100
commitce15cf8ebc976c63cd19e0024102f67677c8c1ff (patch)
tree91fff4ccca0d89d42c39eb5b89ccfbc2452d532a /editor/plugins/spatial_editor_plugin.h
parenta4f5daca67760daf40e0867c8b530ab085f62a71 (diff)
downloadredot-engine-ce15cf8ebc976c63cd19e0024102f67677c8c1ff.tar.gz
fix branch on uninit in spatial_editor_plugin
Moved the initialisation of origin_enabled up a bit, to be inited before it's accessed in _init_grid. A step towards cleaner valgrind output and removes an opportunity for a random occurance of the origin/grid z-fighting issue. Also removed unused variable last_grid_snap to avoid later confusion.
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r--editor/plugins/spatial_editor_plugin.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index 0e35ba8517..b7317cd593 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -510,7 +510,6 @@ private:
RID grid[3];
RID grid_instance[3];
bool grid_visible[3]; //currently visible
- float last_grid_snap;
bool grid_enable[3]; //should be always visible if true
bool grid_enabled;