You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #49667 from Riteo/remove-grid-map-lock-view
Remove GridMap's "Lock View" option and a related method.
This commit is contained in:
@@ -7245,10 +7245,6 @@ void Node3DEditorPlugin::set_state(const Dictionary &p_state) {
|
||||
spatial_editor->set_state(p_state);
|
||||
}
|
||||
|
||||
void Node3DEditor::snap_cursor_to_plane(const Plane &p_plane) {
|
||||
//cursor.pos=p_plane.project(cursor.pos);
|
||||
}
|
||||
|
||||
Vector3 Node3DEditor::snap_point(Vector3 p_target, Vector3 p_start) const {
|
||||
if (is_snap_enabled()) {
|
||||
p_target.x = Math::snap_scalar(0.0, get_translate_snap(), p_target.x);
|
||||
@@ -7291,14 +7287,6 @@ float Node3DEditor::get_scale_snap() const {
|
||||
return snap_value;
|
||||
}
|
||||
|
||||
void Node3DEditorPlugin::_bind_methods() {
|
||||
ClassDB::bind_method("snap_cursor_to_plane", &Node3DEditorPlugin::snap_cursor_to_plane);
|
||||
}
|
||||
|
||||
void Node3DEditorPlugin::snap_cursor_to_plane(const Plane &p_plane) {
|
||||
spatial_editor->snap_cursor_to_plane(p_plane);
|
||||
}
|
||||
|
||||
struct _GizmoPluginPriorityComparator {
|
||||
bool operator()(const Ref<EditorNode3DGizmoPlugin> &p_a, const Ref<EditorNode3DGizmoPlugin> &p_b) const {
|
||||
if (p_a->get_priority() == p_b->get_priority()) {
|
||||
|
||||
Reference in New Issue
Block a user