소스 검색

Merge pull request #63690 from snailrhymer/rotation-snap-fix

Fix default values for rotation snapping in canvas_item_editor_plugin.cpp
Rémi Verschelde 3 년 전
부모
커밋
a32f84dda9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      editor/plugins/canvas_item_editor_plugin.h

+ 2 - 2
editor/plugins/canvas_item_editor_plugin.h

@@ -214,8 +214,8 @@ private:
 	int primary_grid_steps = 8;
 	int grid_step_multiplier = 0;
 
-	real_t snap_rotation_step = 0.0;
-	real_t snap_rotation_offset = Math::deg2rad(15.0);
+	real_t snap_rotation_step = Math::deg2rad(15.0);
+	real_t snap_rotation_offset = 0.0;
 	real_t snap_scale_step = 0.1f;
 	bool smart_snap_active = false;
 	bool grid_snap_active = false;