diff options
| author | Ignacio Etcheverry | 2017-08-20 17:45:01 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry | 2017-08-20 22:07:43 +0200 |
| commit | 32dd9a9f668db31e348c5ef5bc181cdb91c07299 (patch) | |
| tree | 66d9628611d85ca80f314ee9a65777880ee5ef11 /scene/2d/visibility_notifier_2d.cpp | |
| parent | f6c39830cb7cf0d664bdfa25642b333a1249b96f (diff) | |
| download | godot-32dd9a9f668db31e348c5ef5bc181cdb91c07299.tar.gz godot-32dd9a9f668db31e348c5ef5bc181cdb91c07299.tar.zst godot-32dd9a9f668db31e348c5ef5bc181cdb91c07299.zip | |
ClassDB: Provide the enum name of integer constants
Diffstat (limited to 'scene/2d/visibility_notifier_2d.cpp')
| -rw-r--r-- | scene/2d/visibility_notifier_2d.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/scene/2d/visibility_notifier_2d.cpp b/scene/2d/visibility_notifier_2d.cpp index fb71b61d4..cf478697e 100644 --- a/scene/2d/visibility_notifier_2d.cpp +++ b/scene/2d/visibility_notifier_2d.cpp @@ -35,7 +35,6 @@ #include "scene/animation/animation_player.h" #include "scene/main/viewport.h" #include "scene/scene_string_names.h" -#include "scene/scene_string_names.h" void VisibilityNotifier2D::_enter_viewport(Viewport *p_viewport) { @@ -341,13 +340,13 @@ void VisibilityEnabler2D::_bind_methods() { ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "process_parent"), "set_enabler", "is_enabler_enabled", ENABLER_PARENT_PROCESS); ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "fixed_process_parent"), "set_enabler", "is_enabler_enabled", ENABLER_PARENT_FIXED_PROCESS); - BIND_CONSTANT(ENABLER_FREEZE_BODIES); - BIND_CONSTANT(ENABLER_PAUSE_ANIMATIONS); - BIND_CONSTANT(ENABLER_PAUSE_PARTICLES); - BIND_CONSTANT(ENABLER_PAUSE_ANIMATED_SPRITES); - BIND_CONSTANT(ENABLER_PARENT_PROCESS); - BIND_CONSTANT(ENABLER_PARENT_FIXED_PROCESS); - BIND_CONSTANT(ENABLER_MAX); + BIND_ENUM_CONSTANT(ENABLER_FREEZE_BODIES); + BIND_ENUM_CONSTANT(ENABLER_PAUSE_ANIMATIONS); + BIND_ENUM_CONSTANT(ENABLER_PAUSE_PARTICLES); + BIND_ENUM_CONSTANT(ENABLER_PAUSE_ANIMATED_SPRITES); + BIND_ENUM_CONSTANT(ENABLER_PARENT_PROCESS); + BIND_ENUM_CONSTANT(ENABLER_PARENT_FIXED_PROCESS); + BIND_ENUM_CONSTANT(ENABLER_MAX); } void VisibilityEnabler2D::set_enabler(Enabler p_enabler, bool p_enable) { |
