Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 4,552 Lines • ▼ Show 20 Lines | for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | ||||
| if (br->pose_ik_segments == 0) { | if (br->pose_ik_segments == 0) { | ||||
| br->pose_ik_segments = 1; | br->pose_ik_segments = 1; | ||||
| } | } | ||||
| } | } | ||||
| /* Pose brush keep anchor point. */ | /* Pose brush keep anchor point. */ | ||||
| for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | ||||
| if (br->sculpt_tool == SCULPT_TOOL_POSE) { | if (br->sculpt_tool == SCULPT_TOOL_POSE) { | ||||
| br->flag2 |= BRUSH_POSE_IK_ANCHORED; | br->flag2 |= BRUSH_POSE_IK_ANCHORED; | ||||
jbakker: Wouldn't this reset the option everytime you load a file?
You can bump the subversion and check… | |||||
Not Done Inline ActionsThis is in the section for *Versioning code until next subversion bump goes here.* So if I understand this is correct and will be fine by release when all this code gets put under an if (!MAIN_VERSION_ATLEAST(bmain, ***, *)) Blendify: This is in the section for *Versioning code until next subversion bump goes here.* So if I… | |||||
| } | } | ||||
| } | } | ||||
| /* Tip Roundness. */ | /* Tip Roundness. */ | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "Brush", "float", "tip_roundness")) { | if (!DNA_struct_elem_find(fd->filesdna, "Brush", "float", "tip_roundness")) { | ||||
| for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | ||||
| if (br->ob_mode & OB_MODE_SCULPT && br->sculpt_tool == SCULPT_TOOL_CLAY_STRIPS) { | if (br->ob_mode & OB_MODE_SCULPT && br->sculpt_tool == SCULPT_TOOL_CLAY_STRIPS) { | ||||
| br->tip_roundness = 0.18f; | br->tip_roundness = 0.18f; | ||||
| ▲ Show 20 Lines • Show All 505 Lines • ▼ Show 20 Lines | */ | ||||
| /* Reset the cloth mass to 1.0 in brushes with an invalid value. */ | /* Reset the cloth mass to 1.0 in brushes with an invalid value. */ | ||||
| for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | ||||
| if (br->sculpt_tool == SCULPT_TOOL_CLOTH) { | if (br->sculpt_tool == SCULPT_TOOL_CLOTH) { | ||||
| if (br->cloth_mass == 0.0f) { | if (br->cloth_mass == 0.0f) { | ||||
| br->cloth_mass = 1.0f; | br->cloth_mass = 1.0f; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* UV Sculpt Relax Method. */ | |||||
| for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | |||||
| ToolSettings *ts = scene->toolsettings; | |||||
| ts->uv_relax_method = UV_SCULPT_TOOL_RELAX_LAPLACIAN; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
Wouldn't this reset the option everytime you load a file?
You can bump the subversion and check on the subversion so this doesn't happen.