diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-08-20 17:45:01 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-08-20 22:07:43 +0200 |
commit | 32dd9a9f668db31e348c5ef5bc181cdb91c07299 (patch) | |
tree | 66d9628611d85ca80f314ee9a65777880ee5ef11 /scene/resources/shader.cpp | |
parent | f6c39830cb7cf0d664bdfa25642b333a1249b96f (diff) |
ClassDB: Provide the enum name of integer constants
Diffstat (limited to 'scene/resources/shader.cpp')
-rw-r--r-- | scene/resources/shader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp index b72eb9fbef..acd04a9321 100644 --- a/scene/resources/shader.cpp +++ b/scene/resources/shader.cpp @@ -137,9 +137,9 @@ void Shader::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::STRING, "code", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR), "set_code", "get_code"); - BIND_CONSTANT(MODE_SPATIAL); - BIND_CONSTANT(MODE_CANVAS_ITEM); - BIND_CONSTANT(MODE_PARTICLES); + BIND_ENUM_CONSTANT(MODE_SPATIAL); + BIND_ENUM_CONSTANT(MODE_CANVAS_ITEM); + BIND_ENUM_CONSTANT(MODE_PARTICLES); } Shader::Shader() { |