Mod: use empty

This commit is contained in:
berniev
2022-08-06 02:29:31 +10:00
committed by wwmayer
parent 22dcf5866f
commit 53ba98d636
134 changed files with 419 additions and 419 deletions

View File

@@ -536,7 +536,7 @@ void SoBrepFaceSet::GLRender(SoGLRenderAction *action)
return;
if(selContext2->checkGlobal(ctx))
ctx = selContext2;
if(ctx && (!ctx->selectionIndex.size() && ctx->highlightIndex<0))
if(ctx && (ctx->selectionIndex.empty() && ctx->highlightIndex<0))
ctx.reset();
auto state = action->getState();
@@ -592,7 +592,7 @@ void SoBrepFaceSet::GLRender(SoGLRenderAction *action)
if(!action->isRenderingDelayedPaths())
renderHighlight(action,ctx);
if(ctx && ctx->selectionIndex.size()) {
if(ctx && !ctx->selectionIndex.empty()) {
if(ctx->isSelectAll()) {
if(ctx2) {
ctx2->selectionColor = ctx->selectionColor;
@@ -735,7 +735,7 @@ bool SoBrepFaceSet::overrideMaterialBinding(SoGLRenderAction *action, SelContext
&&
((ctx && Gui::Selection().needPickedList()) ||
trans0!=0.0 ||
(ctx2 && ctx2->colors.size())))
(ctx2 && !ctx2->colors.empty())))
{
state->push();
@@ -857,7 +857,7 @@ bool SoBrepFaceSet::overrideMaterialBinding(SoGLRenderAction *action, SelContext
}
}
if(ctx && ctx->selectionIndex.size()) {
if(ctx && !ctx->selectionIndex.empty()) {
packedColors.push_back(ctx->selectionColor.getPackedValue(trans0));
for(auto idx : ctx->selectionIndex) {
if(idx>=0 && idx<partIndex.getNum())