Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 1,741 Lines • ▼ Show 20 Lines | for (bScreen *sc = bmain->screens.first; sc; sc = sc->id.next) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "Brush", "float", "falloff_angle")) { | if (!DNA_struct_elem_find(fd->filesdna, "Brush", "float", "falloff_angle")) { | ||||
| for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | ||||
| br->falloff_angle = DEG2RADF(80); | br->falloff_angle = DEG2RADF(80); | ||||
| /* These flags are used for new feautres. They are not related to falloff_angle */ | /* These flags are used for new feautres. They are not related to falloff_angle */ | ||||
| br->flag &= ~(BRUSH_FLAG_UNUSED_1 | BRUSH_ORIGINAL_PLANE | BRUSH_GRAB_ACTIVE_VERTEX | | br->flag &= ~(BRUSH_DYNAMIC_MESH_PREVIEW | BRUSH_ORIGINAL_PLANE | | ||||
| BRUSH_SCENE_SPACING | BRUSH_FRONTFACE_FALLOFF); | BRUSH_GRAB_ACTIVE_VERTEX | BRUSH_SCENE_SPACING | BRUSH_FRONTFACE_FALLOFF); | ||||
| } | } | ||||
| for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | ||||
| ToolSettings *ts = scene->toolsettings; | ToolSettings *ts = scene->toolsettings; | ||||
| for (int i = 0; i < 2; i++) { | for (int i = 0; i < 2; i++) { | ||||
| VPaint *vp = i ? ts->vpaint : ts->wpaint; | VPaint *vp = i ? ts->vpaint : ts->wpaint; | ||||
| if (vp != NULL) { | if (vp != NULL) { | ||||
| /* remove all other flags */ | /* remove all other flags */ | ||||
| ▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines | |||||