diff options
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 16 |
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"); |