From 0e6664539d2644e630df111426b637dc8ff7a271 Mon Sep 17 00:00:00 2001 From: reduz Date: Thu, 29 Oct 2020 18:09:16 -0300 Subject: 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 --- core/engine.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'core') 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; } -- cgit v1.2.3