diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-06-09 22:54:15 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-06-09 22:54:15 +0200 |
commit | dbe513931fb7fa055736d0114cb800ae50537c20 (patch) | |
tree | 1a82e00e6c9d222da8f810fa2441afdea01fa888 | |
parent | d120b099f528673fb6aebaa5d9cff0fa91a774d0 (diff) |
Add a property hint to Environment's `sky_rotation` property
This property hint is identical to Node3D's `sky_rotation` property
and provides degree-based editing.
-rw-r--r-- | scene/resources/environment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index afff05c688..f6ffc8db53 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -1179,7 +1179,7 @@ void Environment::_bind_methods() { ADD_GROUP("Sky", "sky_"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "sky", PROPERTY_HINT_RESOURCE_TYPE, "Sky"), "set_sky", "get_sky"); ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "sky_custom_fov", PROPERTY_HINT_RANGE, "0,180,0.1,degrees"), "set_sky_custom_fov", "get_sky_custom_fov"); - ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "sky_rotation"), "set_sky_rotation", "get_sky_rotation"); + ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "sky_rotation", PROPERTY_HINT_RANGE, "-360,360,0.1,or_lesser,or_greater,radians"), "set_sky_rotation", "get_sky_rotation"); // Ambient light |