/dports/devel/godot2-tools/godot-2.1.6-stable/editor/plugins/ |
H A D | texture_region_editor_plugin.cpp | 73 if (snap_step.x != 0) { in _region_draw() 94 if (snap_step.y != 0) { in _region_draw() 529 snap_step.x = p_val; in _set_snap_step_x() 534 snap_step.y = p_val; in _set_snap_step_y() 760 p_target.x = _snap_scalar(snap_offset.x, snap_step.x, snap_separation.x, p_target.x); in snap_point() 761 p_target.y = _snap_scalar(snap_offset.y, snap_step.y, snap_separation.y, p_target.y); in snap_point() 775 snap_step = Vector2(10, 10); in TextureRegionEditor() 833 sb_step_x->set_val(snap_step.x); in TextureRegionEditor() 842 sb_step_y->set_val(snap_step.y); in TextureRegionEditor() 934 state["snap_step"] = region_editor->snap_step; in get_state() [all …]
|
H A D | polygon_2d_editor_plugin.cpp | 179 snap_step.x = p_val; in _set_snap_step_x() 184 snap_step.y = p_val; in _set_snap_step_y() 644 if (snap_step.x != 0) { in _uv_draw() 646 …ast_ftoi(Math::floor((mtx.affine_inverse().xform(Vector2(i, 0)).x - snap_offset.x) / snap_step.x)); in _uv_draw() 655 if (snap_step.y != 0) { in _uv_draw() 657 …ast_ftoi(Math::floor((mtx.affine_inverse().xform(Vector2(0, i)).y - snap_offset.y) / snap_step.y)); in _uv_draw() 745 …p_target.x = _snap_scalar(snap_offset.x * uv_draw_zoom - uv_draw_ofs.x, snap_step.x * uv_draw_zoom… in snap_point() 746 …p_target.y = _snap_scalar(snap_offset.y * uv_draw_zoom - uv_draw_ofs.y, snap_step.y * uv_draw_zoom… in snap_point() 759 snap_step = Vector2(10, 10); in Polygon2DEditor() 881 sb_step_x->set_val(snap_step.x); in Polygon2DEditor() [all …]
|
H A D | texture_region_editor_plugin.h | 82 Vector2 snap_step; variable
|
H A D | polygon_2d_editor_plugin.h | 113 Vector2 snap_step; variable
|
H A D | canvas_item_editor_plugin.cpp | 263 p_target.x = _snap_scalar(snap_offset.x, snap_step.x, snap_relative, p_target.x, p_start.x); in snap_point() 264 p_target.y = _snap_scalar(snap_offset.y, snap_step.y, snap_relative, p_target.y, p_start.y); in snap_point() 283 state["snap_step"] = snap_step; in get_state() 308 snap_step = state["snap_step"]; in set_state() 638 drag *= snap_step; in _key_move() 910 …((SnapDialog *)snap_dialog)->get_fields(snap_offset, snap_step, snap_rotation_offset, snap_rotatio… in _snap_changed() 1846 if (snap_step.x != 0) { in _viewport_draw() 1848 … cell = Math::fast_ftoi(Math::floor((xform.xform(Vector2(i, 0)).x - snap_offset.x) / snap_step.x)); in _viewport_draw() 1857 if (snap_step.y != 0) { in _viewport_draw() 1859 … cell = Math::fast_ftoi(Math::floor((xform.xform(Vector2(0, i)).y - snap_offset.y) / snap_step.y)); in _viewport_draw() [all …]
|
H A D | canvas_item_editor_plugin.h | 173 Vector2 snap_step; variable
|
/dports/devel/godot2/godot-2.1.6-stable/editor/plugins/ |
H A D | texture_region_editor_plugin.cpp | 73 if (snap_step.x != 0) { in _region_draw() 94 if (snap_step.y != 0) { in _region_draw() 529 snap_step.x = p_val; in _set_snap_step_x() 534 snap_step.y = p_val; in _set_snap_step_y() 760 p_target.x = _snap_scalar(snap_offset.x, snap_step.x, snap_separation.x, p_target.x); in snap_point() 761 p_target.y = _snap_scalar(snap_offset.y, snap_step.y, snap_separation.y, p_target.y); in snap_point() 775 snap_step = Vector2(10, 10); in TextureRegionEditor() 833 sb_step_x->set_val(snap_step.x); in TextureRegionEditor() 842 sb_step_y->set_val(snap_step.y); in TextureRegionEditor() 934 state["snap_step"] = region_editor->snap_step; in get_state() [all …]
|
H A D | polygon_2d_editor_plugin.cpp | 179 snap_step.x = p_val; in _set_snap_step_x() 184 snap_step.y = p_val; in _set_snap_step_y() 644 if (snap_step.x != 0) { in _uv_draw() 646 …ast_ftoi(Math::floor((mtx.affine_inverse().xform(Vector2(i, 0)).x - snap_offset.x) / snap_step.x)); in _uv_draw() 655 if (snap_step.y != 0) { in _uv_draw() 657 …ast_ftoi(Math::floor((mtx.affine_inverse().xform(Vector2(0, i)).y - snap_offset.y) / snap_step.y)); in _uv_draw() 745 …p_target.x = _snap_scalar(snap_offset.x * uv_draw_zoom - uv_draw_ofs.x, snap_step.x * uv_draw_zoom… in snap_point() 746 …p_target.y = _snap_scalar(snap_offset.y * uv_draw_zoom - uv_draw_ofs.y, snap_step.y * uv_draw_zoom… in snap_point() 759 snap_step = Vector2(10, 10); in Polygon2DEditor() 881 sb_step_x->set_val(snap_step.x); in Polygon2DEditor() [all …]
|
H A D | polygon_2d_editor_plugin.h | 113 Vector2 snap_step; variable
|
H A D | texture_region_editor_plugin.h | 82 Vector2 snap_step; variable
|
H A D | canvas_item_editor_plugin.cpp | 263 p_target.x = _snap_scalar(snap_offset.x, snap_step.x, snap_relative, p_target.x, p_start.x); in snap_point() 264 p_target.y = _snap_scalar(snap_offset.y, snap_step.y, snap_relative, p_target.y, p_start.y); in snap_point() 283 state["snap_step"] = snap_step; in get_state() 308 snap_step = state["snap_step"]; in set_state() 638 drag *= snap_step; in _key_move() 910 …((SnapDialog *)snap_dialog)->get_fields(snap_offset, snap_step, snap_rotation_offset, snap_rotatio… in _snap_changed() 1846 if (snap_step.x != 0) { in _viewport_draw() 1848 … cell = Math::fast_ftoi(Math::floor((xform.xform(Vector2(i, 0)).x - snap_offset.x) / snap_step.x)); in _viewport_draw() 1857 if (snap_step.y != 0) { in _viewport_draw() 1859 … cell = Math::fast_ftoi(Math::floor((xform.xform(Vector2(0, i)).y - snap_offset.y) / snap_step.y)); in _viewport_draw() [all …]
|
H A D | canvas_item_editor_plugin.h | 173 Vector2 snap_step; variable
|
/dports/devel/godot-tools/godot-3.2.3-stable/editor/plugins/ |
H A D | texture_region_editor_plugin.cpp | 80 if (snap_step.x != 0) { in _region_draw() 101 if (snap_step.y != 0) { in _region_draw() 597 snap_step.x = p_val; in _set_snap_step_x() 602 snap_step.y = p_val; in _set_snap_step_y() 904 …p_target.x = Math::snap_scalar_separation(snap_offset.x, snap_step.x, p_target.x, snap_separation.… in snap_point() 905 …p_target.y = Math::snap_scalar_separation(snap_offset.y, snap_step.y, p_target.y, snap_separation.… in snap_point() 920 snap_step = Vector2(10, 10); in TextureRegionEditor() 971 sb_step_x->set_value(snap_step.x); in TextureRegionEditor() 980 sb_step_y->set_value(snap_step.y); in TextureRegionEditor() 1082 state["snap_step"] = region_editor->snap_step; in get_state() [all …]
|
H A D | polygon_2d_editor_plugin.cpp | 433 snap_step.x = p_val; in _set_snap_step_x() 434 …torSettings::get_singleton()->set_project_metadata("polygon_2d_uv_editor", "snap_step", snap_step); in _set_snap_step_x() 439 snap_step.y = p_val; in _set_snap_step_y() 440 …torSettings::get_singleton()->set_project_metadata("polygon_2d_uv_editor", "snap_step", snap_step); in _set_snap_step_y() 1003 if (snap_step.x != 0) { in _uv_draw() 1005 …ast_ftoi(Math::floor((mtx.affine_inverse().xform(Vector2(i, 0)).x - snap_offset.x) / snap_step.x)); in _uv_draw() 1014 if (snap_step.y != 0) { in _uv_draw() 1258 …p_target.x = Math::snap_scalar(snap_offset.x * uv_draw_zoom - uv_draw_ofs.x, snap_step.x * uv_draw… in snap_point() 1259 …p_target.y = Math::snap_scalar(snap_offset.y * uv_draw_zoom - uv_draw_ofs.y, snap_step.y * uv_draw… in snap_point() 1442 sb_step_x->set_value(snap_step.x); in Polygon2DEditor() [all …]
|
H A D | polygon_2d_editor_plugin.h | 124 Vector2 snap_step; variable
|
H A D | texture_region_editor_plugin.h | 84 Vector2 snap_step; variable
|
H A D | tile_set_editor_plugin.cpp | 397 snap_step = Vector2(32, 32); in TileSetEditor() 2345 snap_step.x = CLAMP(p_val.x, 0, 256); in _set_snap_step() 2346 snap_step.y = CLAMP(p_val.y, 0, 256); in _set_snap_step() 2542 size = snap_step; in draw_edited_region_subdivision() 2578 if (snap_step.x != 0) { in draw_grid_snap() 2593 last_p += snap_step.x; in draw_grid_snap() 2597 if (snap_step.y != 0) { in draw_grid_snap() 2612 last_p += snap_step.y; in draw_grid_snap() 3316 grid_coord += snap_step; in update_edited_region() 3323 grid_coord += snap_step; in update_edited_region() [all …]
|
H A D | tile_set_editor_plugin.h | 130 Vector2 snap_step; variable
|
/dports/devel/godot/godot-3.2.3-stable/editor/plugins/ |
H A D | texture_region_editor_plugin.cpp | 80 if (snap_step.x != 0) { in _region_draw() 101 if (snap_step.y != 0) { in _region_draw() 597 snap_step.x = p_val; in _set_snap_step_x() 602 snap_step.y = p_val; in _set_snap_step_y() 904 …p_target.x = Math::snap_scalar_separation(snap_offset.x, snap_step.x, p_target.x, snap_separation.… in snap_point() 905 …p_target.y = Math::snap_scalar_separation(snap_offset.y, snap_step.y, p_target.y, snap_separation.… in snap_point() 920 snap_step = Vector2(10, 10); in TextureRegionEditor() 971 sb_step_x->set_value(snap_step.x); in TextureRegionEditor() 980 sb_step_y->set_value(snap_step.y); in TextureRegionEditor() 1082 state["snap_step"] = region_editor->snap_step; in get_state() [all …]
|
H A D | polygon_2d_editor_plugin.cpp | 433 snap_step.x = p_val; in _set_snap_step_x() 434 …torSettings::get_singleton()->set_project_metadata("polygon_2d_uv_editor", "snap_step", snap_step); in _set_snap_step_x() 439 snap_step.y = p_val; in _set_snap_step_y() 440 …torSettings::get_singleton()->set_project_metadata("polygon_2d_uv_editor", "snap_step", snap_step); in _set_snap_step_y() 1003 if (snap_step.x != 0) { in _uv_draw() 1005 …ast_ftoi(Math::floor((mtx.affine_inverse().xform(Vector2(i, 0)).x - snap_offset.x) / snap_step.x)); in _uv_draw() 1014 if (snap_step.y != 0) { in _uv_draw() 1258 …p_target.x = Math::snap_scalar(snap_offset.x * uv_draw_zoom - uv_draw_ofs.x, snap_step.x * uv_draw… in snap_point() 1259 …p_target.y = Math::snap_scalar(snap_offset.y * uv_draw_zoom - uv_draw_ofs.y, snap_step.y * uv_draw… in snap_point() 1442 sb_step_x->set_value(snap_step.x); in Polygon2DEditor() [all …]
|
H A D | texture_region_editor_plugin.h | 84 Vector2 snap_step; variable
|
H A D | polygon_2d_editor_plugin.h | 124 Vector2 snap_step; variable
|
H A D | tile_set_editor_plugin.cpp | 397 snap_step = Vector2(32, 32); in TileSetEditor() 2345 snap_step.x = CLAMP(p_val.x, 0, 256); in _set_snap_step() 2346 snap_step.y = CLAMP(p_val.y, 0, 256); in _set_snap_step() 2542 size = snap_step; in draw_edited_region_subdivision() 2578 if (snap_step.x != 0) { in draw_grid_snap() 2593 last_p += snap_step.x; in draw_grid_snap() 2597 if (snap_step.y != 0) { in draw_grid_snap() 2612 last_p += snap_step.y; in draw_grid_snap() 3316 grid_coord += snap_step; in update_edited_region() 3323 grid_coord += snap_step; in update_edited_region() [all …]
|
H A D | tile_set_editor_plugin.h | 130 Vector2 snap_step; variable
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/mesh/ |
H A D | editmesh_knife.c | 2202 float snap_step = DEG2RADF(45); in knife_snap_angle() local 2209 kcd->angle = snap_v2_angle(dvec_snap, dvec, dvec_ref, snap_step); in knife_snap_angle()
|