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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-28 20:48:02 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-28 22:06:25 +0300
commit94a069a7950c37bb2240b3b846ce2587e8446452 (patch)
treea719f20c3a90df16205c4ad4ad62e0c68dc8f273 /source
parent5c48b97e8c86c34e605e052dc1c30dd1a1ad4621 (diff)
Startup.blend: rename Lamp to Light.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 055e4b065a1..d040ff9d6ed 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -243,14 +243,24 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
BKE_view_layer_rename(bmain, scene, scene->view_layers.first, "View Layer");
}
+ /* Rename lamp objects. */
+ for (Object *ob = bmain->object.first; ob; ob = ob->id.next) {
+ if (STREQ(ob->id.name, "OBLamp")) {
+ STRNCPY(ob->id.name, "OBLight");
+ }
+ }
+ for (Lamp *lamp = bmain->lamp.first; lamp; lamp = lamp->id.next) {
+ if (STREQ(lamp->id.name, "LALamp")) {
+ STRNCPY(lamp->id.name, "LALight");
+ }
+ }
+
for (Mesh *mesh = bmain->mesh.first; mesh; mesh = mesh->id.next) {
/* Match default for new meshes. */
mesh->smoothresh = DEG2RADF(30);
}
- }
- /* Grease Pencil New Eraser Brush */
- if (builtin_template) {
+ /* Grease Pencil New Eraser Brush */
Brush *br;
/* Rename old Hard Eraser */
br = (Brush *)BKE_libblock_find_name(bmain, ID_BR, "Eraser Hard");