summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2020-10-29 18:09:16 -0300
committerreduz <reduzio@gmail.com>2020-10-30 08:57:32 -0300
commit0e6664539d2644e630df111426b637dc8ff7a271 (patch)
tree77dfee623c94a689ae396320dd5d79a464352ae6 /core
parentdebb67918e8644b975a929c0bdeff7922364f314 (diff)
Refactor pixel snapping.
-Rename pixel_snap to snap_2d_to_vertices -Added snap_2d_to_transforms which is more useful Fixes #41814 Solves proposal https://github.com/godotengine/godot-proposals/issues/1666 Supersedes #35606, supersedes #41535, supersedes #41534
Diffstat (limited to 'core')
-rw-r--r--core/engine.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/engine.h b/core/engine.h
index 799773c687..b581c58ec5 100644
--- a/core/engine.h
+++ b/core/engine.h
@@ -60,7 +60,6 @@ private:
float _fps = 1;
int _target_fps = 0;
float _time_scale = 1.0;
- bool _pixel_snap = false;
uint64_t _physics_frames = 0;
float _physics_interpolation_fraction = 0.0f;
bool abort_on_gpu_errors = false;
@@ -110,8 +109,6 @@ public:
bool has_singleton(const String &p_name) const;
Object *get_singleton_object(const String &p_name) const;
- _FORCE_INLINE_ bool get_use_pixel_snap() const { return _pixel_snap; }
-
#ifdef TOOLS_ENABLED
_FORCE_INLINE_ void set_editor_hint(bool p_enabled) { editor_hint = p_enabled; }
_FORCE_INLINE_ bool is_editor_hint() const { return editor_hint; }