summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorManik Sharma <maniksharma2607@gmai.com>2023-05-05 09:01:46 +0530
committerRĂ©mi Verschelde <rverschelde@gmail.com>2023-05-12 12:31:24 +0200
commitf6ed43b7d385737218b623e22b0f7b74a7ae9714 (patch)
tree856bc8bc4187df360a0c7c7d6147557e05558b0d /editor/plugins
parent52c314501cf21144c43eeb15d35b864a9d4939ec (diff)
Make environment energy adjustable as a float in 3D editor's preview environment
(cherry picked from commit 3ce0ebb2429cac2443d6fccc8d5c188e7b19b7b2)
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index ed9c1ef47b..d3e0c7e64c 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -8596,8 +8596,10 @@ void fragment() {
environ_ground_color->get_popup()->connect("about_to_popup", callable_mp(EditorNode::get_singleton(), &EditorNode::setup_color_picker).bind(environ_ground_color->get_picker()));
environ_vb->add_margin_child(TTR("Ground Color"), environ_ground_color);
environ_energy = memnew(EditorSpinSlider);
- environ_energy->connect("value_changed", callable_mp(this, &Node3DEditor::_preview_settings_changed).unbind(1));
environ_energy->set_max(8.0);
+ environ_energy->set_min(0);
+ environ_energy->set_step(0.05);
+ environ_energy->connect("value_changed", callable_mp(this, &Node3DEditor::_preview_settings_changed).unbind(1));
environ_vb->add_margin_child(TTR("Sky Energy"), environ_energy);
HBoxContainer *fx_vb = memnew(HBoxContainer);
fx_vb->set_h_size_flags(SIZE_EXPAND_FILL);