Curves: control number of control points in new curves

Previously, the number of control points in a new curve was hardcoded.

Differential Revision: https://developer.blender.org/D14857
This commit is contained in:
2022-05-05 12:11:50 +02:00
parent b4fa74e812
commit dbba5c4df9
7 changed files with 22 additions and 1 deletions

View File

@@ -3024,5 +3024,15 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
FOREACH_NODETREE_END;
/* Initialize brush curves sculpt settings. */
LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) {
if (brush->ob_mode != OB_MODE_SCULPT_CURVES) {
continue;
}
if (brush->curves_sculpt_settings->points_per_curve == 0) {
brush->curves_sculpt_settings->points_per_curve = 8;
}
}
}
}