diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-01-02 14:32:05 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-01-02 14:32:05 -0300 |
commit | ed8e70243fb1a7e88c02a8f47c431fbcc641ec62 (patch) | |
tree | 933518a618061b9cb30c55ed69e00b11e426600b /scene | |
parent | d88e192ae49dd8c30cf4f94f4a50e41b7d912c2d (diff) |
-refresh play options in property when setting samplelibrary (#1016)
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/sample_player_2d.cpp | 1 | ||||
-rw-r--r-- | scene/3d/spatial_sample_player.cpp | 1 | ||||
-rw-r--r-- | scene/audio/sample_player.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/sample_player_2d.cpp b/scene/2d/sample_player_2d.cpp index 99dfa67c27..a231acd13d 100644 --- a/scene/2d/sample_player_2d.cpp +++ b/scene/2d/sample_player_2d.cpp @@ -102,6 +102,7 @@ void SamplePlayer2D::_notification(int p_what) { void SamplePlayer2D::set_sample_library(const Ref<SampleLibrary>& p_library) { library=p_library; + _change_notify(); } Ref<SampleLibrary> SamplePlayer2D::get_sample_library() const { diff --git a/scene/3d/spatial_sample_player.cpp b/scene/3d/spatial_sample_player.cpp index b4a5d3bc1b..6dc71e06ad 100644 --- a/scene/3d/spatial_sample_player.cpp +++ b/scene/3d/spatial_sample_player.cpp @@ -103,6 +103,7 @@ void SpatialSamplePlayer::_notification(int p_what) { void SpatialSamplePlayer::set_sample_library(const Ref<SampleLibrary>& p_library) { library=p_library; + _change_notify(); } Ref<SampleLibrary> SpatialSamplePlayer::get_sample_library() const { diff --git a/scene/audio/sample_player.cpp b/scene/audio/sample_player.cpp index 90994f01b4..bf1c5e97a3 100644 --- a/scene/audio/sample_player.cpp +++ b/scene/audio/sample_player.cpp @@ -498,6 +498,7 @@ bool SamplePlayer::is_active() const { void SamplePlayer::set_sample_library(const Ref<SampleLibrary>& p_library) { library=p_library; + _change_notify(); } Ref<SampleLibrary> SamplePlayer::get_sample_library() const { |