[Bf-blender-cvs] [d5f5e0b] temp-curve-draw: Iniitalize defaults
Campbell Barton
noreply at git.blender.org
Fri Apr 15 08:35:02 CEST 2016
Commit: d5f5e0ba4e6ddeb4434cc227d359752e51371383
Author: Campbell Barton
Date: Fri Apr 15 16:35:04 2016 +1000
Branches: temp-curve-draw
https://developer.blender.org/rBd5f5e0ba4e6ddeb4434cc227d359752e51371383
Iniitalize defaults
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
M source/blender/blenloader/intern/versioning_270.c
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 08661a7..a2770bd 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -586,7 +586,7 @@ class VIEW3D_PT_tools_curveedit_options_stroke(View3DPanel, Panel):
row.prop(cps, "radius_taper_end", text="End")
col = layout.column()
- col.label("Projection/Depth:")
+ col.label("Projection Depth:")
row = layout.row(align=True)
row.prop(cps, "depth_mode", expand=True)
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c
index b9191d5..c6e37f2d 100644
--- a/source/blender/blenloader/intern/versioning_270.c
+++ b/source/blender/blenloader/intern/versioning_270.c
@@ -1072,5 +1072,17 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
}
}
}
+
+ for (Scene *scene = main->scene.first; scene; scene = scene->id.next) {
+ CurvePaintSettings *cps = &scene->toolsettings->curve_paint_settings;
+ if (cps->error_threshold == 0) {
+ cps->curve_type = CU_BEZIER;
+ cps->flag |= CURVE_PAINT_FLAG_CORNERS_DETECT;
+ cps->error_threshold = 8;
+ cps->radius_max = 1.0f;
+ cps->corner_angle = DEG2RAD(70);
+ }
+ }
+
}
}
More information about the Bf-blender-cvs
mailing list