-refresh play options in property when setting samplelibrary (#1016)
This commit is contained in:
parent
d88e192ae4
commit
ed8e70243f
3 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,7 @@ void SamplePlayer2D::_notification(int p_what) {
|
||||||
void SamplePlayer2D::set_sample_library(const Ref<SampleLibrary>& p_library) {
|
void SamplePlayer2D::set_sample_library(const Ref<SampleLibrary>& p_library) {
|
||||||
|
|
||||||
library=p_library;
|
library=p_library;
|
||||||
|
_change_notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<SampleLibrary> SamplePlayer2D::get_sample_library() const {
|
Ref<SampleLibrary> SamplePlayer2D::get_sample_library() const {
|
||||||
|
|
|
@ -103,6 +103,7 @@ void SpatialSamplePlayer::_notification(int p_what) {
|
||||||
void SpatialSamplePlayer::set_sample_library(const Ref<SampleLibrary>& p_library) {
|
void SpatialSamplePlayer::set_sample_library(const Ref<SampleLibrary>& p_library) {
|
||||||
|
|
||||||
library=p_library;
|
library=p_library;
|
||||||
|
_change_notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<SampleLibrary> SpatialSamplePlayer::get_sample_library() const {
|
Ref<SampleLibrary> SpatialSamplePlayer::get_sample_library() const {
|
||||||
|
|
|
@ -498,6 +498,7 @@ bool SamplePlayer::is_active() const {
|
||||||
void SamplePlayer::set_sample_library(const Ref<SampleLibrary>& p_library) {
|
void SamplePlayer::set_sample_library(const Ref<SampleLibrary>& p_library) {
|
||||||
|
|
||||||
library=p_library;
|
library=p_library;
|
||||||
|
_change_notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<SampleLibrary> SamplePlayer::get_sample_library() const {
|
Ref<SampleLibrary> SamplePlayer::get_sample_library() const {
|
||||||
|
|
Loading…
Reference in a new issue