Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_update.c
| Context not available. | |||||
| bScreen *sc; | bScreen *sc; | ||||
| ScrArea *sa; | ScrArea *sa; | ||||
| Scene *scene; | Scene *scene; | ||||
| Material *ma; | |||||
| for (sc = bmain->screen.first; sc; sc = sc->id.next) | for (sc = bmain->screen.first; sc; sc = sc->id.next) | ||||
| for (sa = sc->areabase.first; sa; sa = sa->next) | for (sa = sc->areabase.first; sa; sa = sa->next) | ||||
| Context not available. | |||||
| for (scene = bmain->scene.first; scene; scene = scene->id.next) | for (scene = bmain->scene.first; scene; scene = scene->id.next) | ||||
| ED_render_id_flush_update(bmain, &scene->id); | ED_render_id_flush_update(bmain, &scene->id); | ||||
| /* reset texture painting. Sending one dependency graph signal for any material should | |||||
| * refresh any texture slots */ | |||||
| ma = bmain->mat.first; | |||||
| if (ma) { | |||||
| DAG_id_tag_update(&ma->id, 0); | |||||
| } | |||||
| } | } | ||||
| /***************************** Updates *********************************** | /***************************** Updates *********************************** | ||||
| Context not available. | |||||
| texture_changed(bmain, tex); | texture_changed(bmain, tex); | ||||
| } | } | ||||
| static void scene_changed(Main *bmain, Scene *scene) | static void scene_changed(Main *bmain, Scene *UNUSED(scene)) | ||||
| { | { | ||||
| Object *ob; | Object *ob; | ||||
| Material *ma; | Material *ma; | ||||
| /* glsl */ | /* glsl */ | ||||
| for (ob = bmain->object.first; ob; ob = ob->id.next) { | for (ob = bmain->object.first; ob; ob = ob->id.next) | ||||
| if (ob->gpulamp.first) | if (ob->gpulamp.first) | ||||
| GPU_lamp_free(ob); | GPU_lamp_free(ob); | ||||
| if (ob->mode & OB_MODE_TEXTURE_PAINT) { | |||||
| BKE_texpaint_slots_refresh_object(scene, ob); | |||||
| BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL); | |||||
| GPU_drawobject_free(ob->derivedFinal); | |||||
| } | |||||
| } | |||||
| for (ma = bmain->mat.first; ma; ma = ma->id.next) | for (ma = bmain->mat.first; ma; ma = ma->id.next) | ||||
| if (ma->gpumaterial.first) | if (ma->gpumaterial.first) | ||||
| Context not available. | |||||