diff options
-rw-r--r-- | main/main.cpp | 4 | ||||
-rw-r--r-- | scene/resources/texture.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index a336496d39..a50a8827cd 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -792,6 +792,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph // Determine if the project manager should be requested project_manager = main_args.size() == 0 && !found_project; } + + if (project_manager) { + Engine::get_singleton()->set_editor_hint(true); + } #endif if (main_args.size() == 0 && String(GLOBAL_DEF("application/run/main_scene", "")) == "") { diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 811e5c3d2c..dba3e4d71b 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -1606,7 +1606,7 @@ void GradientTexture::_bind_methods() { ClassDB::bind_method(D_METHOD("_update"), &GradientTexture::_update); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "gradient", PROPERTY_HINT_RESOURCE_TYPE, "Gradient"), "set_gradient", "get_gradient"); - ADD_PROPERTY(PropertyInfo(Variant::INT, "width"), "set_width", "get_width"); + ADD_PROPERTY(PropertyInfo(Variant::INT, "width", PROPERTY_HINT_RANGE, "1,2048,1,or_greater"), "set_width", "get_width"); } void GradientTexture::set_gradient(Ref<Gradient> p_gradient) { |