소스 검색

-refresh play options in property when setting samplelibrary (#1016)

Juan Linietsky 10 년 전
부모
커밋
ed8e70243f
3개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/2d/sample_player_2d.cpp
  2. 1 0
      scene/3d/spatial_sample_player.cpp
  3. 1 0
      scene/audio/sample_player.cpp

+ 1 - 0
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 {

+ 1 - 0
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 {

+ 1 - 0
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 {