From ed8e70243fb1a7e88c02a8f47c431fbcc641ec62 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 2 Jan 2015 14:32:05 -0300 Subject: [PATCH] -refresh play options in property when setting samplelibrary (#1016) --- scene/2d/sample_player_2d.cpp | 1 + scene/3d/spatial_sample_player.cpp | 1 + scene/audio/sample_player.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/scene/2d/sample_player_2d.cpp b/scene/2d/sample_player_2d.cpp index 99dfa67c27b..a231acd13d5 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& p_library) { library=p_library; + _change_notify(); } Ref SamplePlayer2D::get_sample_library() const { diff --git a/scene/3d/spatial_sample_player.cpp b/scene/3d/spatial_sample_player.cpp index b4a5d3bc1bb..6dc71e06ad4 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& p_library) { library=p_library; + _change_notify(); } Ref SpatialSamplePlayer::get_sample_library() const { diff --git a/scene/audio/sample_player.cpp b/scene/audio/sample_player.cpp index 90994f01b4b..bf1c5e97a35 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& p_library) { library=p_library; + _change_notify(); } Ref SamplePlayer::get_sample_library() const {