aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/visibility_notifier.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-08-21 19:56:08 -0300
committerGitHub2017-08-21 19:56:08 -0300
commit2cc83092498d3b82fa8a3aba37c32ad887d19c2c (patch)
tree4d2def0a62847170a86c3f134f234af8ae45f0b9 /scene/3d/visibility_notifier.cpp
parent92410df24cdf296ad63250274d69b2019996423e (diff)
parent32dd9a9f668db31e348c5ef5bc181cdb91c07299 (diff)
downloadgodot-2cc83092498d3b82fa8a3aba37c32ad887d19c2c.tar.gz
godot-2cc83092498d3b82fa8a3aba37c32ad887d19c2c.tar.zst
godot-2cc83092498d3b82fa8a3aba37c32ad887d19c2c.zip
Merge pull request #10351 from neikeq/enums-are-for-the-weak
ClassDB: Provide the enum name of integer constants
Diffstat (limited to 'scene/3d/visibility_notifier.cpp')
-rw-r--r--scene/3d/visibility_notifier.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/3d/visibility_notifier.cpp b/scene/3d/visibility_notifier.cpp
index 2fea451fe..0b77968dc 100644
--- a/scene/3d/visibility_notifier.cpp
+++ b/scene/3d/visibility_notifier.cpp
@@ -252,9 +252,9 @@ void VisibilityEnabler::_bind_methods() {
ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "pause_animations"), "set_enabler", "is_enabler_enabled", ENABLER_PAUSE_ANIMATIONS);
ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "freeze_bodies"), "set_enabler", "is_enabler_enabled", ENABLER_FREEZE_BODIES);
- BIND_CONSTANT(ENABLER_FREEZE_BODIES);
- BIND_CONSTANT(ENABLER_PAUSE_ANIMATIONS);
- BIND_CONSTANT(ENABLER_MAX);
+ BIND_ENUM_CONSTANT(ENABLER_FREEZE_BODIES);
+ BIND_ENUM_CONSTANT(ENABLER_PAUSE_ANIMATIONS);
+ BIND_ENUM_CONSTANT(ENABLER_MAX);
}
void VisibilityEnabler::set_enabler(Enabler p_enabler, bool p_enable) {