Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | BKE_curvemap_reset(gp_primitive_curve->cm, | ||||
| CURVEMAP_SLOPE_POSITIVE); | CURVEMAP_SLOPE_POSITIVE); | ||||
| scene->unit.system = USER_UNIT_METRIC; | scene->unit.system = USER_UNIT_METRIC; | ||||
| scene->unit.scale_length = 1.0f; | scene->unit.scale_length = 1.0f; | ||||
| scene->unit.length_unit = (uchar)bUnit_GetBaseUnitOfType(USER_UNIT_METRIC, B_UNIT_LENGTH); | scene->unit.length_unit = (uchar)bUnit_GetBaseUnitOfType(USER_UNIT_METRIC, B_UNIT_LENGTH); | ||||
| scene->unit.mass_unit = (uchar)bUnit_GetBaseUnitOfType(USER_UNIT_METRIC, B_UNIT_MASS); | scene->unit.mass_unit = (uchar)bUnit_GetBaseUnitOfType(USER_UNIT_METRIC, B_UNIT_MASS); | ||||
| scene->unit.time_unit = (uchar)bUnit_GetBaseUnitOfType(USER_UNIT_METRIC, B_UNIT_TIME); | scene->unit.time_unit = (uchar)bUnit_GetBaseUnitOfType(USER_UNIT_METRIC, B_UNIT_TIME); | ||||
| /* Anti-aliasing threshold. */ | |||||
| scene->grease_pencil_settings.smaa_threshold = 1.0f; | |||||
| { | { | ||||
| ParticleEditSettings *pset; | ParticleEditSettings *pset; | ||||
| pset = &scene->toolsettings->particle; | pset = &scene->toolsettings->particle; | ||||
| for (size_t i = 1; i < ARRAY_SIZE(pset->brush); i++) { | for (size_t i = 1; i < ARRAY_SIZE(pset->brush); i++) { | ||||
| pset->brush[i] = pset->brush[0]; | pset->brush[i] = pset->brush[0]; | ||||
| } | } | ||||
| pset->brush[PE_BRUSH_CUT].strength = 1.0f; | pset->brush[PE_BRUSH_CUT].strength = 1.0f; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,273 Lines • Show Last 20 Lines | |||||