[Bf-blender-cvs] [3fe7d049d21] master: Fix new curve objects showing as UNKNOWN in the outliner

Dalai Felinto noreply at git.blender.org
Fri Jun 3 18:42:04 CEST 2022


Commit: 3fe7d049d21b4ad939ea8fb2df1f80c4f107a699
Author: Dalai Felinto
Date:   Fri Jun 3 18:40:14 2022 +0200
Branches: master
https://developer.blender.org/rB3fe7d049d21b4ad939ea8fb2df1f80c4f107a699

Fix new curve objects showing as UNKNOWN in the outliner

The fix is to unify with the name we had for the old Curves objects.

That means that we will see them bothi (old and new curves) in the outliner
(under two different categories but with different names).

This is considered to be a temporary solution until we remove the old
curve system entirely.

===================================================================

M	source/blender/blenkernel/intern/curves.cc

===================================================================

diff --git a/source/blender/blenkernel/intern/curves.cc b/source/blender/blenkernel/intern/curves.cc
index 589a1a9208e..9abd5a7fdf0 100644
--- a/source/blender/blenkernel/intern/curves.cc
+++ b/source/blender/blenkernel/intern/curves.cc
@@ -208,8 +208,8 @@ IDTypeInfo IDType_ID_CV = {
     /*id_filter */ FILTER_ID_CV,
     /*main_listbase_index */ INDEX_ID_CV,
     /*struct_size */ sizeof(Curves),
-    /*name */ "Hair Curves",
-    /*name_plural */ "Hair Curves",
+    /*name */ "Curves",
+    /*name_plural */ "curves",
     /*translation_context */ BLT_I18NCONTEXT_ID_CURVES,
     /*flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE,
     /*asset_type_info */ nullptr,



More information about the Bf-blender-cvs mailing list