File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
project/addons/terrain_3d/src Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,10 @@ The following mouse and keyboard shortcuts or hotkeys are available.
2929These toggle the Overlays found in the inspector. The mouse must be in the 3D Viewport with Terrain3D selected for these to work.
3030
3131* <kbd >1</kbd > - Toggle ** Region Grid** .
32- * <kbd >2</kbd > - Toggle ** Instancer Grid** .
33- * <kbd >3</kbd > - Toggle ** Vertex Grid** .
34- * <kbd >4</kbd > - Toggle ** Contour Lines** . Customize in the material when enabled.
32+ * <kbd >2</kbd > - Toggle ** Region Label Distance** between 0 and 4096.
33+ * <kbd >3</kbd > - Toggle ** Contour Lines** . Customize in the material when enabled.
34+ * <kbd >4</kbd > - Toggle ** Instancer Grid** .
35+ * <kbd >5</kbd > - Toggle ** Vertex Grid** .
3536
3637
3738## Tool Selection
Original file line number Diff line number Diff line change @@ -326,14 +326,16 @@ func _read_input(p_event: InputEvent = null) -> AfterGUIInput:
326326# Returns true if hotkey matches and operation triggered
327327func consume_hotkey (keycode : int ) -> bool :
328328 match keycode :
329- KEY_1 :
329+ KEY_1 , KEY_KP_1 :
330330 terrain .material .set_show_region_grid (! terrain .material .get_show_region_grid ())
331- KEY_2 :
331+ KEY_2 , KEY_KP_2 :
332+ terrain .label_distance = 4096.0 if is_zero_approx (terrain .label_distance ) else 0.0
333+ KEY_3 , KEY_KP_3 :
334+ terrain .material .set_show_contours (! terrain .material .get_show_contours ())
335+ KEY_4 , KEY_KP_4 :
332336 terrain .material .set_show_instancer_grid (! terrain .material .get_show_instancer_grid ())
333- KEY_3 :
337+ KEY_5 , KEY_KP_5 :
334338 terrain .material .set_show_vertex_grid (! terrain .material .get_show_vertex_grid ())
335- KEY_4 :
336- terrain .material .set_show_contours (! terrain .material .get_show_contours ())
337339 KEY_E :
338340 ui .toolbar .get_button ("AddRegion" ).set_pressed (true )
339341 KEY_R :
You can’t perform that action at this time.
0 commit comments