Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 45fb62a4ac0..05758b446ad 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -27,6 +27,7 @@
#include "BLI_system.h"
#include "DNA_camera_types.h"
+#include "DNA_curveprofile_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
@@ -51,6 +52,7 @@
#include "BKE_paint.h"
#include "BKE_screen.h"
#include "BKE_workspace.h"
+#include "BKE_curveprofile.h"
#include "BLO_readfile.h"
@@ -324,6 +326,11 @@ static void blo_update_defaults_scene(Main *bmain, Scene *scene)
copy_v2_v2(me->mloopuv[i].uv, uv_values[i]);
}
}
+
+ /* Make sure that the curve profile is initialized */
+ if (ts->custom_bevel_profile_preset == NULL) {
+ ts->custom_bevel_profile_preset = BKE_curveprofile_add(PROF_PRESET_LINE);
+ }
}
/**