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:
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/render/render_update.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c
index f11af9b4d51..8a034fdd8b5 100644
--- a/source/blender/editors/render/render_update.c
+++ b/source/blender/editors/render/render_update.c
@@ -45,6 +45,7 @@
#include "BLI_utildefines.h"
#include "BKE_context.h"
+#include "BKE_depsgraph.h"
#include "BKE_DerivedMesh.h"
#include "BKE_icons.h"
#include "BKE_main.h"
@@ -178,7 +179,10 @@ void ED_render_engine_changed(Main *bmain)
/* reset texture painting */
for (ma = bmain->mat.first; ma; ma = ma->id.next) {
- BKE_texpaint_slots_clear(ma);
+ if (ma->texpaintslot) {
+ BKE_texpaint_slots_clear(ma);
+ DAG_id_tag_update(&ma->id, 0);
+ }
}
}