godot/editor/plugins
Tan Wang Leng ee2f406c73 Fix wrong guideline values shown during dragging
Suppose that the user wants to use some guidelines in 2D mode. The
user has enabled "Use Pixel Snap", and configured the "Grid Step" to
1px.

On some zoom levels, when dragging the guidelines step by step, some
offsets shows the wrong value. The offsets that are wrong vary - it is
affected by the zoom level, so some zoom levels do not display this
problem.

For example, a user may see this while dragging the guideline:

0px   1px   1px   3px   4px   5px   5px   7px   8px

whereby 2px and 6px are missing.

This is due to a floating-point error. The values are printed as
(truncated) integers, but they are actually decimals, so they were
actually 1.9999 and 5.9999 for the missing cases.

Let's fix that by rounding up the values before printing them to get rid
of the errors.

This fixes #35010.
2020-01-24 23:52:43 +08:00
..
abstract_polygon_2d_editor.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
abstract_polygon_2d_editor.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_blend_space_1d_editor.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_blend_space_1d_editor.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_blend_space_2d_editor.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_blend_space_2d_editor.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_blend_tree_editor_plugin.cpp Fix AnimationTree Editor by using CONNECT_DEFERRED on LineEdit 2020-01-18 12:12:13 -08:00
animation_blend_tree_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_player_editor_plugin.cpp Animation editor: Set resource name when duplicating 2020-01-13 13:22:06 +01:00
animation_player_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_state_machine_editor.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_state_machine_editor.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_tree_editor_plugin.cpp Fixes min size of various editor plugins on HiDPI 2020-01-12 15:24:15 +08:00
animation_tree_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
animation_tree_player_editor_plugin.cpp Fixes AnimationTreePlayer editor on HiDPI 2020-01-19 10:20:53 +08:00
animation_tree_player_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
asset_library_editor_plugin.cpp Fix asset library video play overlay not being centered on the thumbnail 2020-01-21 08:04:32 +01:00
asset_library_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
audio_stream_editor_plugin.cpp Fixes min size of various editor plugins on HiDPI 2020-01-12 15:24:15 +08:00
audio_stream_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
baked_lightmap_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
baked_lightmap_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
camera_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
camera_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
canvas_item_editor_plugin.cpp Fix wrong guideline values shown during dragging 2020-01-24 23:52:43 +08:00
canvas_item_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_polygon_2d_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_polygon_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_polygon_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_polygon_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_shape_2d_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_shape_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
cpu_particles_2d_editor_plugin.cpp Makes more strings translatable 2020-01-04 13:46:38 +08:00
cpu_particles_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
cpu_particles_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
cpu_particles_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
curve_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
curve_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
editor_preview_plugins.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
editor_preview_plugins.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gi_probe_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gi_probe_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gradient_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gradient_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
item_list_editor_plugin.cpp Increase the size of the item list editor popup 2020-01-12 18:19:39 +01:00
item_list_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
light_occluder_2d_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
light_occluder_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
line_2d_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
line_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
material_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
material_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_instance_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_instance_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_library_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_library_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
multimesh_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
multimesh_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation_polygon_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation_polygon_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
particles_2d_editor_plugin.cpp Makes more strings translatable 2020-01-04 13:46:38 +08:00
particles_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
particles_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
particles_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path_2d_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physical_bone_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physical_bone_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
polygon_2d_editor_plugin.cpp Fixes scrollbar positions on HiDPI display 2020-01-23 08:55:52 +08:00
polygon_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
resource_preloader_editor_plugin.cpp Fixes min size of various editor plugins on HiDPI 2020-01-12 15:24:15 +08:00
resource_preloader_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
root_motion_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
root_motion_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
script_editor_plugin.cpp Add option to disable loading scripts in ScriptCreateDialog 2020-01-09 13:09:23 -03:00
script_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
script_text_editor.cpp Fixed unknown symbol drawn instead of tabs in breakpoints/bookmarks lists 2020-01-16 13:50:30 +01:00
script_text_editor.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00
shader_editor_plugin.cpp Fix minimap updating in shader tab 2020-01-18 12:31:33 +03:00
shader_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
skeleton_2d_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
skeleton_2d_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
skeleton_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
skeleton_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
skeleton_ik_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
skeleton_ik_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spatial_editor_plugin.cpp Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
spatial_editor_plugin.h Add a crosshair to the 3D viewport 2020-01-13 22:30:34 +01:00
sprite_editor_plugin.cpp Remove unused #if 0'ed code 2020-01-21 21:41:54 +01:00
sprite_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
sprite_frames_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
sprite_frames_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
style_box_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
style_box_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
text_editor.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
text_editor.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
texture_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
texture_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
texture_region_editor_plugin.cpp Fixes scrollbar positions on HiDPI display 2020-01-23 08:55:52 +08:00
texture_region_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
theme_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
theme_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
tile_map_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
tile_map_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
tile_set_editor_plugin.cpp Fix TileSet editor's workspace size sometimes not changing correctly on region change 2020-01-10 00:57:49 -03:00
tile_set_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
version_control_editor_plugin.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
version_control_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_shader_editor_plugin.cpp Fixes min size of various editor plugins on HiDPI 2020-01-12 15:24:15 +08:00
visual_shader_editor_plugin.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00