diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-09 14:07:50 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-09 14:07:50 +0300 |
commit | be50d526ebc2d67c3888e18d10fcbf218537cd5b (patch) | |
tree | 87992feb3085df055e8cf662882ae052ac87fbe9 /source/blender/io | |
parent | 34c7f42c080d9adcac3cd23b4f4813302305a81c (diff) | |
parent | 7b0bc1573b02198ec71f808fa1f6d1a2c6b79524 (diff) |
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/io')
-rw-r--r-- | source/blender/io/collada/EffectExporter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/io/collada/EffectExporter.cpp b/source/blender/io/collada/EffectExporter.cpp index 71a54e3a7c9..40ce20617fc 100644 --- a/source/blender/io/collada/EffectExporter.cpp +++ b/source/blender/io/collada/EffectExporter.cpp @@ -46,6 +46,7 @@ EffectsExporter::EffectsExporter(COLLADASW::StreamWriter *sw, bool EffectsExporter::hasEffects(Scene *sce) { + bool result = false; FOREACH_SCENE_OBJECT_BEGIN (sce, ob) { int a; for (a = 0; a < ob->totcol; a++) { @@ -56,11 +57,12 @@ bool EffectsExporter::hasEffects(Scene *sce) continue; } - return true; + result = true; + break; } } FOREACH_SCENE_OBJECT_END; - return false; + return result; } void EffectsExporter::exportEffects(bContext *C, Scene *sce) |