Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 1,159 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| ID *id = ptr->owner_id; | ID *id = ptr->owner_id; | ||||
| if (GS(id->name) != ID_SCR) { | if (GS(id->name) != ID_SCR) { | ||||
| return; | return; | ||||
| } | } | ||||
| View3DShading *shading = ptr->data; | View3DShading *shading = ptr->data; | ||||
| if (shading->type == OB_MATERIAL || | if (shading->type == OB_MATERIAL || | ||||
| (shading->type == OB_RENDER && !STREQ(scene->r.engine, RE_engine_id_BLENDER_WORKBENCH))) { | (shading->type == OB_RENDER && !BKE_scene_uses_blender_workbench(scene))) { | ||||
| /* When switching from workbench to render or material mode the geometry of any | /* When switching from workbench to render or material mode the geometry of any | ||||
| * active sculpt session needs to be recalculated. */ | * active sculpt session needs to be recalculated. */ | ||||
| for (Object *ob = bmain->objects.first; ob; ob = ob->id.next) { | for (Object *ob = bmain->objects.first; ob; ob = ob->id.next) { | ||||
| if (ob->sculpt) { | if (ob->sculpt) { | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 6,990 Lines • Show Last 20 Lines | |||||