Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-12-18 17:25:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-18 17:25:23 +0400
commit8e382fde5759014e8dcb5b998cb492449d8c9c27 (patch)
treeedd8e433cb346b057b2034eb732694991174e2bb /source/blender
parentb9d03811d5dd4a05b7f4aba223ffd844f69422a1 (diff)
fix for include and use break statement (may as well not loop more then needed).
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/render/render_update.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c
index 3e6478b6455..38535eca918 100644
--- a/source/blender/editors/render/render_update.c
+++ b/source/blender/editors/render/render_update.c
@@ -47,7 +47,7 @@
#include "BKE_context.h"
#include "BKE_depsgraph.h"
-#include "BKE_derivedmesh.h"
+#include "BKE_DerivedMesh.h"
#include "BKE_icons.h"
#include "BKE_image.h"
#include "BKE_main.h"
@@ -262,9 +262,12 @@ static void material_changed(Main *bmain, Material *ma)
}
/* find if we have a scene with textured display */
- for (scene = bmain->scene.first; scene; scene = scene->id.next)
- if (scene->customdata_mask & CD_MASK_MTFACE)
+ for (scene = bmain->scene.first; scene; scene = scene->id.next) {
+ if (scene->customdata_mask & CD_MASK_MTFACE) {
texture_draw = TRUE;
+ break;
+ }
+ }
/* find textured objects */
if (texture_draw && !(U.gameflags & USER_DISABLE_VBO)) {