Fix VoxelGenerator*::set_channel dosen't call emit_changed
This commit is contained in:
parent
2b86986d2b
commit
cc17af3243
@ -13,6 +13,7 @@ void VoxelGeneratorFlat::set_channel(VoxelBuffer::ChannelId channel) {
|
||||
RWLockWrite wlock(_parameters_lock);
|
||||
if (_parameters.channel != channel) {
|
||||
_parameters.channel = channel;
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
if (changed) {
|
||||
|
@ -15,6 +15,7 @@ void VoxelGeneratorHeightmap::set_channel(VoxelBuffer::ChannelId channel) {
|
||||
RWLockWrite wlock(_parameters_lock);
|
||||
if (_parameters.channel != channel) {
|
||||
_parameters.channel = channel;
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
if (changed) {
|
||||
|
@ -35,6 +35,7 @@ void VoxelGeneratorNoise::set_channel(VoxelBuffer::ChannelId channel) {
|
||||
RWLockWrite wlock(_parameters_lock);
|
||||
if (_parameters.channel != channel) {
|
||||
_parameters.channel = channel;
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
if (changed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user