diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-03-19 21:37:00 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-03-19 21:39:23 +0300 |
commit | 12b621059a6f1337e8ae8fdd9533e7808225e71e (patch) | |
tree | d04a2fddc28152235191e2d93884f4d143410d85 /source/blender/editors/object/object_transform.c | |
parent | 0b7854323d41f3a1a55a40ddf76a90e2017a0784 (diff) |
Cleanup/refactor: remove BKE_idcode, in favour of BKE_idtype.
Mpving utils from idcode to idtype proved to be somewhat painful for
some reasons, but now all looks good.
Had to add a fake/empty shell for the special snowflake too,
`ID_LINK_PLACEHOLDER/INDEX_ID_NULL`...
Diffstat (limited to 'source/blender/editors/object/object_transform.c')
-rw-r--r-- | source/blender/editors/object/object_transform.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index 0eab9c72227..28bb28a0298 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -46,7 +46,7 @@ #include "BKE_editmesh.h" #include "BKE_gpencil.h" #include "BKE_gpencil_geom.h" -#include "BKE_idcode.h" +#include "BKE_idtype.h" #include "BKE_lattice.h" #include "BKE_layer.h" #include "BKE_lib_id.h" @@ -639,7 +639,7 @@ static int apply_objects_internal(bContext *C, RPT_ERROR, "Cannot apply to a multi user: Object \"%s\", %s \"%s\", aborting", ob->id.name + 2, - BKE_idcode_to_name(GS(obdata->name)), + BKE_idtype_idcode_to_name(GS(obdata->name)), obdata->name + 2); changed = false; } @@ -649,7 +649,7 @@ static int apply_objects_internal(bContext *C, RPT_ERROR, "Cannot apply to library data: Object \"%s\", %s \"%s\", aborting", ob->id.name + 2, - BKE_idcode_to_name(GS(obdata->name)), + BKE_idtype_idcode_to_name(GS(obdata->name)), obdata->name + 2); changed = false; } @@ -667,7 +667,7 @@ static int apply_objects_internal(bContext *C, RPT_ERROR, "Rotation/Location can't apply to a 2D curve: Object \"%s\", %s \"%s\", aborting", ob->id.name + 2, - BKE_idcode_to_name(GS(obdata->name)), + BKE_idtype_idcode_to_name(GS(obdata->name)), obdata->name + 2); changed = false; } @@ -676,7 +676,7 @@ static int apply_objects_internal(bContext *C, RPT_ERROR, "Can't apply to a curve with shape-keys: Object \"%s\", %s \"%s\", aborting", ob->id.name + 2, - BKE_idcode_to_name(GS(obdata->name)), + BKE_idtype_idcode_to_name(GS(obdata->name)), obdata->name + 2); changed = false; } @@ -712,7 +712,7 @@ static int apply_objects_internal(bContext *C, "Can't apply to a GP datablock where all layers are parented: Object " "\"%s\", %s \"%s\", aborting", ob->id.name + 2, - BKE_idcode_to_name(ID_GD), + BKE_idtype_idcode_to_name(ID_GD), gpd->id.name + 2); changed = false; } @@ -724,7 +724,7 @@ static int apply_objects_internal(bContext *C, RPT_ERROR, "Can't apply to GP datablock with no layers: Object \"%s\", %s \"%s\", aborting", ob->id.name + 2, - BKE_idcode_to_name(ID_GD), + BKE_idtype_idcode_to_name(ID_GD), gpd->id.name + 2); } } |