From 4db8ade5654e3727de27d70e48217ab014f2702a Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Mon, 18 May 2020 01:07:38 -0700 Subject: [PATCH] Remove the `custom_defines` section from the editor --- scene/resources/shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp index 1549489203b..87e5f217d15 100644 --- a/scene/resources/shader.cpp +++ b/scene/resources/shader.cpp @@ -178,7 +178,7 @@ void Shader::_bind_methods() { //ClassDB::bind_method(D_METHOD("get_param_list"),&Shader::get_fragment_code); ADD_PROPERTY(PropertyInfo(Variant::STRING, "code", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR), "set_code", "get_code"); - ADD_PROPERTY(PropertyInfo(Variant::STRING, "custom_defines", PROPERTY_HINT_MULTILINE_TEXT), "set_custom_defines", "get_custom_defines"); + ADD_PROPERTY(PropertyInfo(Variant::STRING, "custom_defines", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR), "set_custom_defines", "get_custom_defines"); BIND_ENUM_CONSTANT(MODE_SPATIAL); BIND_ENUM_CONSTANT(MODE_CANVAS_ITEM);