summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent <vinsteimes@gmail.com>2021-12-03 03:14:20 +0100
committerVincent <vinsteimes@gmail.com>2021-12-03 03:14:20 +0100
commit8263646f68d820aec69adacd01ae6cb35e488a68 (patch)
tree4a1baf89539fb27ef3cd3ce02145fc0d076f65f1
parent1f666a972fdabb5941bfd62f1f9e07489ba7b474 (diff)
AudioStreamMP3: expose loop properties to the editor
-rw-r--r--modules/minimp3/audio_stream_mp3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/minimp3/audio_stream_mp3.cpp b/modules/minimp3/audio_stream_mp3.cpp
index a9c1f0bb9a..17406b7263 100644
--- a/modules/minimp3/audio_stream_mp3.cpp
+++ b/modules/minimp3/audio_stream_mp3.cpp
@@ -215,8 +215,8 @@ void AudioStreamMP3::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_loop_offset"), &AudioStreamMP3::get_loop_offset);
ADD_PROPERTY(PropertyInfo(Variant::PACKED_BYTE_ARRAY, "data", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "set_data", "get_data");
- ADD_PROPERTY(PropertyInfo(Variant::BOOL, "loop", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "set_loop", "has_loop");
- ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "loop_offset", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "set_loop_offset", "get_loop_offset");
+ ADD_PROPERTY(PropertyInfo(Variant::BOOL, "loop"), "set_loop", "has_loop");
+ ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "loop_offset"), "set_loop_offset", "get_loop_offset");
}
AudioStreamMP3::AudioStreamMP3() {