This commit is contained in:
Bruno
2021-04-26 22:06:06 +02:00
parent 7ba87fcee8
commit c7d6d37a8e
2 changed files with 2 additions and 5 deletions

View File

@@ -661,7 +661,7 @@ void Mixer::renameSource(Source *s, const std::string &newname)
std::list<std::string> others = session_->getNameList();
others.remove(tentativename);
// refuse to rename to an empty name
// try the given new name if valid
if ( !newname.empty() )
tentativename = newname;

View File

@@ -764,11 +764,8 @@ void Source::setMask(FrameBufferImage *img)
// ask to update the source
touch();
}
else {
// CANCEL mask if set to null
else
mask_need_update_ = false;
maskshader_->mode = MaskShader::NONE;
}
}
bool Source::hasNode::operator()(const Source* elem) const