summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/animation.cpp7
-rw-r--r--scene/resources/animation.h1
2 files changed, 1 insertions, 7 deletions
diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp
index c0ab636adc..e00bf56939 100644
--- a/scene/resources/animation.cpp
+++ b/scene/resources/animation.cpp
@@ -969,10 +969,6 @@ void Animation::remove_track(int p_track) {
_check_capture_included();
}
-void Animation::set_capture_included(bool p_capture_included) {
- capture_included = p_capture_included;
-}
-
bool Animation::is_capture_included() const {
return capture_included;
}
@@ -3908,13 +3904,12 @@ void Animation::_bind_methods() {
ClassDB::bind_method(D_METHOD("compress", "page_size", "fps", "split_tolerance"), &Animation::compress, DEFVAL(8192), DEFVAL(120), DEFVAL(4.0));
- ClassDB::bind_method(D_METHOD("_set_capture_included", "capture_included"), &Animation::set_capture_included);
ClassDB::bind_method(D_METHOD("is_capture_included"), &Animation::is_capture_included);
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "length", PROPERTY_HINT_RANGE, "0.001,99999,0.001,suffix:s"), "set_length", "get_length");
ADD_PROPERTY(PropertyInfo(Variant::INT, "loop_mode", PROPERTY_HINT_ENUM, "None,Linear,Ping-Pong"), "set_loop_mode", "get_loop_mode");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "step", PROPERTY_HINT_RANGE, "0,4096,0.001,suffix:s"), "set_step", "get_step");
- ADD_PROPERTY(PropertyInfo(Variant::BOOL, "capture_included", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_READ_ONLY | PROPERTY_USAGE_NO_EDITOR), "_set_capture_included", "is_capture_included");
+ ADD_PROPERTY(PropertyInfo(Variant::BOOL, "capture_included", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "", "is_capture_included");
BIND_ENUM_CONSTANT(TYPE_VALUE);
BIND_ENUM_CONSTANT(TYPE_POSITION_3D);
diff --git a/scene/resources/animation.h b/scene/resources/animation.h
index d5daaac58a..9e6d34959a 100644
--- a/scene/resources/animation.h
+++ b/scene/resources/animation.h
@@ -396,7 +396,6 @@ public:
int add_track(TrackType p_type, int p_at_pos = -1);
void remove_track(int p_track);
- void set_capture_included(bool p_capture_included);
bool is_capture_included() const;
int get_track_count() const;