Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_update.c
| Show First 20 Lines • Show All 390 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void texture_changed(Main *bmain, Tex *tex) | static void texture_changed(Main *bmain, Tex *tex) | ||||
| { | { | ||||
| Material *ma; | Material *ma; | ||||
| Lamp *la; | Lamp *la; | ||||
| World *wo; | World *wo; | ||||
| Scene *scene; | Scene *scene; | ||||
| SceneLayer *sl; | ViewLayer *sl; | ||||
| Object *ob; | Object *ob; | ||||
| bNode *node; | bNode *node; | ||||
| bool texture_draw = false; | bool texture_draw = false; | ||||
| /* icons */ | /* icons */ | ||||
| BKE_icon_changed(BKE_icon_id_ensure(&tex->id)); | BKE_icon_changed(BKE_icon_id_ensure(&tex->id)); | ||||
| /* paint overlays */ | /* paint overlays */ | ||||
| for (scene = bmain->scene.first; scene; scene = scene->id.next) { | for (scene = bmain->scene.first; scene; scene = scene->id.next) { | ||||
| for (sl = scene->render_layers.first; sl; sl = sl->next) { | for (sl = scene->view_layers.first; sl; sl = sl->next) { | ||||
| BKE_paint_invalidate_overlay_tex(scene, sl, tex); | BKE_paint_invalidate_overlay_tex(scene, sl, tex); | ||||
| } | } | ||||
| } | } | ||||
| /* find materials */ | /* find materials */ | ||||
| for (ma = bmain->mat.first; ma; ma = ma->id.next) { | for (ma = bmain->mat.first; ma; ma = ma->id.next) { | ||||
| if (!material_uses_texture(ma, tex)) | if (!material_uses_texture(ma, tex)) | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines | |||||