Cleanup: Move BKE_idprop.h to C++
This commit is contained in:
parent
f41ab9abc1
commit
efee753e8f
@ -20,7 +20,7 @@
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "BKE_animsys.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_override.hh"
|
||||
|
||||
|
@ -15,10 +15,6 @@
|
||||
#include "BLI_string_ref.hh"
|
||||
#include "BLI_sys_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct BlendDataReader;
|
||||
struct BlendWriter;
|
||||
struct ID;
|
||||
@ -30,7 +26,7 @@ class ArrayValue;
|
||||
class Value;
|
||||
} // namespace blender::io::serialize
|
||||
|
||||
typedef union IDPropertyTemplate {
|
||||
union IDPropertyTemplate {
|
||||
int i;
|
||||
float f;
|
||||
double d;
|
||||
@ -41,13 +37,13 @@ typedef union IDPropertyTemplate {
|
||||
/** #eIDPropertySubType */
|
||||
char subtype;
|
||||
} string;
|
||||
struct ID *id;
|
||||
ID *id;
|
||||
struct {
|
||||
int len;
|
||||
/** #eIDPropertyType */
|
||||
char type;
|
||||
} array;
|
||||
} IDPropertyTemplate;
|
||||
};
|
||||
|
||||
/* ----------- Property Array Type ---------- */
|
||||
|
||||
@ -55,26 +51,25 @@ typedef union IDPropertyTemplate {
|
||||
* \note as a start to move away from the stupid #IDP_New function,
|
||||
* this type has its own allocation function.
|
||||
*/
|
||||
struct IDProperty *IDP_NewIDPArray(const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
struct IDProperty *IDP_CopyIDPArray(const struct IDProperty *array,
|
||||
int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
IDProperty *IDP_NewIDPArray(const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
IDProperty *IDP_CopyIDPArray(const IDProperty *array, int flag) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL();
|
||||
|
||||
/**
|
||||
* Shallow copies item.
|
||||
*/
|
||||
void IDP_SetIndexArray(struct IDProperty *prop, int index, struct IDProperty *item) ATTR_NONNULL();
|
||||
struct IDProperty *IDP_GetIndexArray(struct IDProperty *prop, int index) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL();
|
||||
void IDP_AppendArray(struct IDProperty *prop, struct IDProperty *item);
|
||||
void IDP_ResizeIDPArray(struct IDProperty *prop, int len);
|
||||
void IDP_SetIndexArray(IDProperty *prop, int index, IDProperty *item) ATTR_NONNULL();
|
||||
IDProperty *IDP_GetIndexArray(IDProperty *prop, int index) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
void IDP_AppendArray(IDProperty *prop, IDProperty *item);
|
||||
void IDP_ResizeIDPArray(IDProperty *prop, int len);
|
||||
|
||||
/* ----------- Numeric Array Type ----------- */
|
||||
|
||||
/**
|
||||
* This function works for strings too!
|
||||
*/
|
||||
void IDP_ResizeArray(struct IDProperty *prop, int newlen);
|
||||
void IDP_FreeArray(struct IDProperty *prop);
|
||||
void IDP_ResizeArray(IDProperty *prop, int newlen);
|
||||
void IDP_FreeArray(IDProperty *prop);
|
||||
|
||||
/* ---------- String Type ------------ */
|
||||
/**
|
||||
@ -85,10 +80,10 @@ void IDP_FreeArray(struct IDProperty *prop);
|
||||
* When zero, this is the equivalent of passing in `strlen(st) + 1`
|
||||
* \return The new string property.
|
||||
*/
|
||||
struct IDProperty *IDP_NewStringMaxSize(const char *st,
|
||||
size_t st_maxncpy,
|
||||
const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(3);
|
||||
struct IDProperty *IDP_NewString(const char *st, const char *name) ATTR_WARN_UNUSED_RESULT
|
||||
IDProperty *IDP_NewStringMaxSize(const char *st,
|
||||
size_t st_maxncpy,
|
||||
const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(3);
|
||||
IDProperty *IDP_NewString(const char *st, const char *name) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL(2);
|
||||
/**
|
||||
* \param st: The string to assign.
|
||||
@ -96,24 +91,23 @@ struct IDProperty *IDP_NewString(const char *st, const char *name) ATTR_WARN_UNU
|
||||
* \param maxncpy: The maximum size of the string (including the `\0` terminator).
|
||||
* When zero, this is the equivalent of passing in `strlen(st) + 1`
|
||||
*/
|
||||
void IDP_AssignStringMaxSize(struct IDProperty *prop, const char *st, size_t st_maxncpy)
|
||||
ATTR_NONNULL();
|
||||
void IDP_AssignString(struct IDProperty *prop, const char *st) ATTR_NONNULL();
|
||||
void IDP_FreeString(struct IDProperty *prop) ATTR_NONNULL();
|
||||
void IDP_AssignStringMaxSize(IDProperty *prop, const char *st, size_t st_maxncpy) ATTR_NONNULL();
|
||||
void IDP_AssignString(IDProperty *prop, const char *st) ATTR_NONNULL();
|
||||
void IDP_FreeString(IDProperty *prop) ATTR_NONNULL();
|
||||
|
||||
/*-------- Enum Type -------*/
|
||||
|
||||
const struct IDPropertyUIDataEnumItem *IDP_EnumItemFind(const struct IDProperty *prop);
|
||||
const IDPropertyUIDataEnumItem *IDP_EnumItemFind(const IDProperty *prop);
|
||||
|
||||
bool IDP_EnumItemsValidate(const struct IDPropertyUIDataEnumItem *items,
|
||||
bool IDP_EnumItemsValidate(const IDPropertyUIDataEnumItem *items,
|
||||
int items_num,
|
||||
void (*error_fn)(const char *));
|
||||
|
||||
/*-------- ID Type -------*/
|
||||
|
||||
typedef void (*IDPWalkFunc)(void *user_data, struct IDProperty *idp);
|
||||
using IDPWalkFunc = void (*)(void *user_data, IDProperty *idp);
|
||||
|
||||
void IDP_AssignID(struct IDProperty *prop, struct ID *id, int flag);
|
||||
void IDP_AssignID(IDProperty *prop, ID *id, int flag);
|
||||
|
||||
/*-------- Group Functions -------*/
|
||||
|
||||
@ -123,35 +117,29 @@ void IDP_AssignID(struct IDProperty *prop, struct ID *id, int flag);
|
||||
*
|
||||
* \note Was used for syncing proxies.
|
||||
*/
|
||||
void IDP_SyncGroupValues(struct IDProperty *dest, const struct IDProperty *src) ATTR_NONNULL();
|
||||
void IDP_SyncGroupTypes(struct IDProperty *dest, const struct IDProperty *src, bool do_arraylen)
|
||||
ATTR_NONNULL();
|
||||
void IDP_SyncGroupValues(IDProperty *dest, const IDProperty *src) ATTR_NONNULL();
|
||||
void IDP_SyncGroupTypes(IDProperty *dest, const IDProperty *src, bool do_arraylen) ATTR_NONNULL();
|
||||
/**
|
||||
* Replaces all properties with the same name in a destination group from a source group.
|
||||
*/
|
||||
void IDP_ReplaceGroupInGroup(struct IDProperty *dest, const struct IDProperty *src) ATTR_NONNULL();
|
||||
void IDP_ReplaceInGroup(struct IDProperty *group, struct IDProperty *prop) ATTR_NONNULL();
|
||||
void IDP_ReplaceGroupInGroup(IDProperty *dest, const IDProperty *src) ATTR_NONNULL();
|
||||
void IDP_ReplaceInGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL();
|
||||
/**
|
||||
* Checks if a property with the same name as prop exists, and if so replaces it.
|
||||
* Use this to preserve order!
|
||||
*/
|
||||
void IDP_ReplaceInGroup_ex(struct IDProperty *group,
|
||||
struct IDProperty *prop,
|
||||
struct IDProperty *prop_exist);
|
||||
void IDP_ReplaceInGroup_ex(IDProperty *group, IDProperty *prop, IDProperty *prop_exist);
|
||||
/**
|
||||
* If a property is missing in \a dest, add it.
|
||||
* Do it recursively.
|
||||
*/
|
||||
void IDP_MergeGroup(struct IDProperty *dest, const struct IDProperty *src, bool do_overwrite)
|
||||
void IDP_MergeGroup(IDProperty *dest, const IDProperty *src, bool do_overwrite) ATTR_NONNULL();
|
||||
/**
|
||||
* If a property is missing in \a dest, add it.
|
||||
* Do it recursively.
|
||||
*/
|
||||
void IDP_MergeGroup_ex(IDProperty *dest, const IDProperty *src, bool do_overwrite, int flag)
|
||||
ATTR_NONNULL();
|
||||
/**
|
||||
* If a property is missing in \a dest, add it.
|
||||
* Do it recursively.
|
||||
*/
|
||||
void IDP_MergeGroup_ex(struct IDProperty *dest,
|
||||
const struct IDProperty *src,
|
||||
bool do_overwrite,
|
||||
int flag) ATTR_NONNULL();
|
||||
/**
|
||||
* This function has a sanity check to make sure ID properties with the same name don't
|
||||
* get added to the group.
|
||||
@ -162,64 +150,61 @@ void IDP_MergeGroup_ex(struct IDProperty *dest,
|
||||
* returns false if a property can't be added to the group, and true if it can)
|
||||
* and free the property.
|
||||
*/
|
||||
bool IDP_AddToGroup(struct IDProperty *group, struct IDProperty *prop) ATTR_NONNULL();
|
||||
bool IDP_AddToGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL();
|
||||
/**
|
||||
* This is the same as IDP_AddToGroup, only you pass an item
|
||||
* in the group list to be inserted after.
|
||||
*/
|
||||
bool IDP_InsertToGroup(struct IDProperty *group,
|
||||
struct IDProperty *previous,
|
||||
struct IDProperty *pnew) ATTR_NONNULL(1 /*group*/, 3 /*pnew*/);
|
||||
bool IDP_InsertToGroup(IDProperty *group, IDProperty *previous, IDProperty *pnew)
|
||||
ATTR_NONNULL(1 /*group*/, 3 /*pnew*/);
|
||||
/**
|
||||
* \note this does not free the property!
|
||||
*
|
||||
* To free the property, you have to do:
|
||||
* #IDP_FreeProperty(prop);
|
||||
*/
|
||||
void IDP_RemoveFromGroup(struct IDProperty *group, struct IDProperty *prop) ATTR_NONNULL();
|
||||
void IDP_RemoveFromGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL();
|
||||
/**
|
||||
* Removes the property from the group and frees it.
|
||||
*/
|
||||
void IDP_FreeFromGroup(struct IDProperty *group, struct IDProperty *prop) ATTR_NONNULL();
|
||||
void IDP_FreeFromGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL();
|
||||
|
||||
struct IDProperty *IDP_GetPropertyFromGroup(const struct IDProperty *prop,
|
||||
const char *name) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL();
|
||||
IDProperty *IDP_GetPropertyFromGroup(const IDProperty *prop,
|
||||
const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
/**
|
||||
* Same as above but ensure type match.
|
||||
*/
|
||||
struct IDProperty *IDP_GetPropertyTypeFromGroup(const struct IDProperty *prop,
|
||||
const char *name,
|
||||
char type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
IDProperty *IDP_GetPropertyTypeFromGroup(const IDProperty *prop,
|
||||
const char *name,
|
||||
char type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
|
||||
/*-------- Main Functions --------*/
|
||||
/**
|
||||
* Get the Group property that contains the id properties for ID `id`.
|
||||
*/
|
||||
struct IDProperty *IDP_GetProperties(struct ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
|
||||
IDProperty *IDP_GetProperties(ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
|
||||
/**
|
||||
* Ensure the Group property that contains the id properties for ID `id` exists & return it.
|
||||
*/
|
||||
struct IDProperty *IDP_EnsureProperties(struct ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
|
||||
struct IDProperty *IDP_CopyProperty(const struct IDProperty *prop) ATTR_WARN_UNUSED_RESULT
|
||||
IDProperty *IDP_EnsureProperties(ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
|
||||
IDProperty *IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
IDProperty *IDP_CopyProperty_ex(const IDProperty *prop, int flag) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL();
|
||||
struct IDProperty *IDP_CopyProperty_ex(const struct IDProperty *prop,
|
||||
int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
/**
|
||||
* Copy content from source #IDProperty into destination one,
|
||||
* freeing destination property's content first.
|
||||
*/
|
||||
void IDP_CopyPropertyContent(struct IDProperty *dst, const struct IDProperty *src) ATTR_NONNULL();
|
||||
void IDP_CopyPropertyContent(IDProperty *dst, const IDProperty *src) ATTR_NONNULL();
|
||||
|
||||
/**
|
||||
* \param is_strict: When false treat missing items as a match.
|
||||
*/
|
||||
bool IDP_EqualsProperties_ex(const struct IDProperty *prop1,
|
||||
const struct IDProperty *prop2,
|
||||
bool IDP_EqualsProperties_ex(const IDProperty *prop1,
|
||||
const IDProperty *prop2,
|
||||
bool is_strict) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
bool IDP_EqualsProperties(const struct IDProperty *prop1,
|
||||
const struct IDProperty *prop2) ATTR_WARN_UNUSED_RESULT;
|
||||
bool IDP_EqualsProperties(const IDProperty *prop1,
|
||||
const IDProperty *prop2) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* Allocate a new ID.
|
||||
@ -248,22 +233,22 @@ bool IDP_EqualsProperties(const struct IDProperty *prop1,
|
||||
* IDP_AddToGroup or MEM_freeN the property, doing anything else might result in
|
||||
* a memory leak.
|
||||
*/
|
||||
struct IDProperty *IDP_New(char type,
|
||||
const IDPropertyTemplate *val,
|
||||
const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
IDProperty *IDP_New(char type,
|
||||
const IDPropertyTemplate *val,
|
||||
const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
||||
|
||||
/**
|
||||
* \note This will free allocated data, all child properties of arrays and groups, and unlink IDs!
|
||||
* But it does not free the actual #IDProperty struct itself.
|
||||
*/
|
||||
void IDP_FreePropertyContent_ex(struct IDProperty *prop, bool do_id_user);
|
||||
void IDP_FreePropertyContent(struct IDProperty *prop);
|
||||
void IDP_FreeProperty_ex(struct IDProperty *prop, bool do_id_user);
|
||||
void IDP_FreeProperty(struct IDProperty *prop);
|
||||
void IDP_FreePropertyContent_ex(IDProperty *prop, bool do_id_user);
|
||||
void IDP_FreePropertyContent(IDProperty *prop);
|
||||
void IDP_FreeProperty_ex(IDProperty *prop, bool do_id_user);
|
||||
void IDP_FreeProperty(IDProperty *prop);
|
||||
|
||||
void IDP_ClearProperty(struct IDProperty *prop);
|
||||
void IDP_ClearProperty(IDProperty *prop);
|
||||
|
||||
void IDP_Reset(struct IDProperty *prop, const struct IDProperty *reference);
|
||||
void IDP_Reset(IDProperty *prop, const IDProperty *reference);
|
||||
|
||||
#define IDP_Int(prop) ((prop)->data.val)
|
||||
#define IDP_Bool(prop) ((prop)->data.val)
|
||||
@ -272,29 +257,29 @@ void IDP_Reset(struct IDProperty *prop, const struct IDProperty *reference);
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
# define IDP_Float(prop) \
|
||||
_Generic((prop), \
|
||||
struct IDProperty *: (*(float *)&(prop)->data.val), \
|
||||
const struct IDProperty *: (*(const float *)&(prop)->data.val))
|
||||
IDProperty *: (*(float *)&(prop)->data.val), \
|
||||
const IDProperty *: (*(const float *)&(prop)->data.val))
|
||||
# define IDP_Double(prop) \
|
||||
_Generic((prop), \
|
||||
struct IDProperty *: (*(double *)&(prop)->data.val), \
|
||||
const struct IDProperty *: (*(const double *)&(prop)->data.val))
|
||||
IDProperty *: (*(double *)&(prop)->data.val), \
|
||||
const IDProperty *: (*(const double *)&(prop)->data.val))
|
||||
# define IDP_String(prop) \
|
||||
_Generic((prop), \
|
||||
struct IDProperty *: ((char *)(prop)->data.pointer), \
|
||||
const struct IDProperty *: ((const char *)(prop)->data.pointer))
|
||||
IDProperty *: ((char *)(prop)->data.pointer), \
|
||||
const IDProperty *: ((const char *)(prop)->data.pointer))
|
||||
# define IDP_IDPArray(prop) \
|
||||
_Generic((prop), \
|
||||
struct IDProperty *: ((struct IDProperty *)(prop)->data.pointer), \
|
||||
const struct IDProperty *: ((const struct IDProperty *)(prop)->data.pointer))
|
||||
IDProperty *: ((IDProperty *)(prop)->data.pointer), \
|
||||
const IDProperty *: ((const IDProperty *)(prop)->data.pointer))
|
||||
# define IDP_Id(prop) \
|
||||
_Generic((prop), \
|
||||
struct IDProperty *: ((ID *)(prop)->data.pointer), \
|
||||
const struct IDProperty *: ((const ID *)(prop)->data.pointer))
|
||||
IDProperty *: ((ID *)(prop)->data.pointer), \
|
||||
const IDProperty *: ((const ID *)(prop)->data.pointer))
|
||||
#else
|
||||
# define IDP_Float(prop) (*(float *)&(prop)->data.val)
|
||||
# define IDP_Double(prop) (*(double *)&(prop)->data.val)
|
||||
# define IDP_String(prop) ((char *)(prop)->data.pointer)
|
||||
# define IDP_IDPArray(prop) ((struct IDProperty *)(prop)->data.pointer)
|
||||
# define IDP_IDPArray(prop) ((IDProperty *)(prop)->data.pointer)
|
||||
# define IDP_Id(prop) ((ID *)(prop)->data.pointer)
|
||||
#endif
|
||||
|
||||
@ -302,22 +287,22 @@ void IDP_Reset(struct IDProperty *prop, const struct IDProperty *reference);
|
||||
* Return an int from an #IDProperty with a compatible type. This should be avoided, but
|
||||
* it's sometimes necessary, for example when legacy files have incorrect property types.
|
||||
*/
|
||||
int IDP_coerce_to_int_or_zero(const struct IDProperty *prop);
|
||||
int IDP_coerce_to_int_or_zero(const IDProperty *prop);
|
||||
/**
|
||||
* Return a float from an #IDProperty with a compatible type. This should be avoided, but
|
||||
* it's sometimes necessary, for example when legacy files have incorrect property types.
|
||||
*/
|
||||
float IDP_coerce_to_float_or_zero(const struct IDProperty *prop);
|
||||
float IDP_coerce_to_float_or_zero(const IDProperty *prop);
|
||||
/**
|
||||
* Return a double from an #IDProperty with a compatible type. This should be avoided, but
|
||||
* it's sometimes necessary, for example when legacy files have incorrect property types.
|
||||
*/
|
||||
double IDP_coerce_to_double_or_zero(const struct IDProperty *prop);
|
||||
double IDP_coerce_to_double_or_zero(const IDProperty *prop);
|
||||
|
||||
/**
|
||||
* Call a callback for each #IDproperty in the hierarchy under given root one (included).
|
||||
*/
|
||||
typedef void (*IDPForeachPropertyCallback)(struct IDProperty *id_property, void *user_data);
|
||||
using IDPForeachPropertyCallback = void (*)(IDProperty *id_property, void *user_data);
|
||||
|
||||
/**
|
||||
* Loop through all ID properties in hierarchy of given \a id_property_root included.
|
||||
@ -327,25 +312,25 @@ typedef void (*IDPForeachPropertyCallback)(struct IDProperty *id_property, void
|
||||
* \param type_filter: If not 0, only apply callback on properties of matching types, see
|
||||
* IDP_TYPE_FILTER_ enum in DNA_ID.h.
|
||||
*/
|
||||
void IDP_foreach_property(struct IDProperty *id_property_root,
|
||||
void IDP_foreach_property(IDProperty *id_property_root,
|
||||
int type_filter,
|
||||
IDPForeachPropertyCallback callback,
|
||||
void *user_data);
|
||||
|
||||
/* Format IDProperty as strings */
|
||||
char *IDP_reprN(const struct IDProperty *prop, uint *r_len);
|
||||
void IDP_repr_fn(const struct IDProperty *prop,
|
||||
char *IDP_reprN(const IDProperty *prop, uint *r_len);
|
||||
void IDP_repr_fn(const IDProperty *prop,
|
||||
void (*str_append_fn)(void *user_data, const char *str, uint str_len),
|
||||
void *user_data);
|
||||
void IDP_print(const struct IDProperty *prop);
|
||||
void IDP_print(const IDProperty *prop);
|
||||
|
||||
void IDP_BlendWrite(struct BlendWriter *writer, const struct IDProperty *prop);
|
||||
void IDP_BlendWrite(struct BlendWriter *writer, const IDProperty *prop);
|
||||
void IDP_BlendReadData_impl(struct BlendDataReader *reader,
|
||||
struct IDProperty **prop,
|
||||
IDProperty **prop,
|
||||
const char *caller_func_id);
|
||||
#define IDP_BlendDataRead(reader, prop) IDP_BlendReadData_impl(reader, prop, __func__)
|
||||
|
||||
typedef enum eIDPropertyUIDataType {
|
||||
enum eIDPropertyUIDataType {
|
||||
/** Other properties types that don't support RNA UI data. */
|
||||
IDP_UI_DATA_TYPE_UNSUPPORTED = -1,
|
||||
/** IDP_INT or IDP_ARRAY with subtype IDP_INT. */
|
||||
@ -358,32 +343,28 @@ typedef enum eIDPropertyUIDataType {
|
||||
IDP_UI_DATA_TYPE_ID = 3,
|
||||
/** IDP_BOOLEAN or IDP_ARRAY with subtype IDP_BOOLEAN. */
|
||||
IDP_UI_DATA_TYPE_BOOLEAN = 4,
|
||||
} eIDPropertyUIDataType;
|
||||
};
|
||||
|
||||
bool IDP_ui_data_supported(const struct IDProperty *prop);
|
||||
eIDPropertyUIDataType IDP_ui_data_type(const struct IDProperty *prop);
|
||||
void IDP_ui_data_free(struct IDProperty *prop);
|
||||
bool IDP_ui_data_supported(const IDProperty *prop);
|
||||
eIDPropertyUIDataType IDP_ui_data_type(const IDProperty *prop);
|
||||
void IDP_ui_data_free(IDProperty *prop);
|
||||
/**
|
||||
* Free allocated pointers in the UI data that isn't shared with the UI data in the `other`
|
||||
* argument. Useful for returning early on failure when updating UI data in place, or when
|
||||
* replacing a subset of the UI data's allocated pointers.
|
||||
*/
|
||||
void IDP_ui_data_free_unique_contents(struct IDPropertyUIData *ui_data,
|
||||
void IDP_ui_data_free_unique_contents(IDPropertyUIData *ui_data,
|
||||
eIDPropertyUIDataType type,
|
||||
const struct IDPropertyUIData *other);
|
||||
struct IDPropertyUIData *IDP_ui_data_ensure(struct IDProperty *prop);
|
||||
struct IDPropertyUIData *IDP_ui_data_copy(const struct IDProperty *prop);
|
||||
const IDPropertyUIData *other);
|
||||
IDPropertyUIData *IDP_ui_data_ensure(IDProperty *prop);
|
||||
IDPropertyUIData *IDP_ui_data_copy(const IDProperty *prop);
|
||||
/**
|
||||
* Convert UI data like default arrays from the old type to the new type as possible.
|
||||
* Takes ownership of the input data; it can return it directly if the types match.
|
||||
*/
|
||||
struct IDPropertyUIData *IDP_TryConvertUIData(struct IDPropertyUIData *src,
|
||||
eIDPropertyUIDataType src_type,
|
||||
eIDPropertyUIDataType dst_type);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
IDPropertyUIData *IDP_TryConvertUIData(IDPropertyUIData *src,
|
||||
eIDPropertyUIDataType src_type,
|
||||
eIDPropertyUIDataType dst_type);
|
||||
|
||||
namespace blender::bke::idprop {
|
||||
|
@ -412,7 +412,7 @@ set(SRC
|
||||
BKE_grease_pencil_legacy_convert.hh
|
||||
BKE_grease_pencil_vertex_groups.hh
|
||||
BKE_icons.h
|
||||
BKE_idprop.h
|
||||
BKE_idprop.hh
|
||||
BKE_idtype.hh
|
||||
BKE_image.h
|
||||
BKE_image_format.h
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include "BKE_constraint.h"
|
||||
#include "BKE_deform.hh"
|
||||
#include "BKE_fcurve.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_addon.h" /* own include */
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
#include "DNA_listBase.h"
|
||||
#include "DNA_userdef_types.h"
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include "BKE_armature.hh"
|
||||
#include "BKE_constraint.h"
|
||||
#include "BKE_curve.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "BLI_uuid.h"
|
||||
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_preview_image.hh"
|
||||
|
||||
#include "BLO_read_write.hh"
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "BKE_cachefile.hh"
|
||||
#include "BKE_callbacks.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_node.hh"
|
||||
#include "BKE_report.hh"
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
#include "BKE_blender_user_menu.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Menu Type
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include "BKE_action.h"
|
||||
#include "BKE_camera.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "BKE_anim_data.hh"
|
||||
#include "BKE_collection.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -58,7 +58,7 @@
|
||||
#include "BKE_editmesh.hh"
|
||||
#include "BKE_fcurve_driver.h"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
#include "BKE_mesh.hh"
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include "BKE_fcurve.hh"
|
||||
#include "BKE_fcurve_driver.h"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
#include "BKE_nla.h"
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_fcurve.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
static CLG_LogRef LOG = {"bke.fmodifier"};
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "BKE_gpencil_modifier_legacy.h"
|
||||
#include "BKE_grease_pencil.hh"
|
||||
#include "BKE_grease_pencil_legacy_convert.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_remap.hh"
|
||||
#include "BKE_main.hh"
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
||||
#include "CLG_log.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "DNA_ID.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
namespace blender::bke::idprop {
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "DNA_ID.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_serialize.hh"
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include "DNA_ID.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
namespace blender::bke::idprop::tests {
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#include "DNA_ID.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "DNA_userdef_types.h"
|
||||
#include "DNA_windowmanager_types.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_keyconfig.h" /* own include */
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "BKE_animsys.h"
|
||||
#include "BKE_collection.hh"
|
||||
#include "BKE_freestyle.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_main.hh"
|
||||
|
@ -47,7 +47,7 @@
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_gpencil_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_key.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "BKE_anim_data.hh"
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_key.hh"
|
||||
#include "BKE_layer.hh"
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_anim_data.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include "BKE_attribute.hh"
|
||||
#include "BKE_customdata.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_main_namemap.hh"
|
||||
|
@ -60,7 +60,7 @@
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_cryptomatte.h"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_image_format.h"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -2,7 +2,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
#include "BKE_node.hh"
|
||||
|
@ -95,7 +95,7 @@
|
||||
#include "BKE_gpencil_legacy.h"
|
||||
#include "BKE_gpencil_modifier_legacy.h"
|
||||
#include "BKE_grease_pencil.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_key.hh"
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include "BKE_geometry_set.hh"
|
||||
#include "BKE_geometry_set_instances.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_instances.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_mesh.hh"
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "BKE_action.h"
|
||||
#include "BKE_action.hh"
|
||||
#include "BKE_armature.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_object_types.hh"
|
||||
|
||||
using namespace blender::bke;
|
||||
|
@ -63,7 +63,7 @@
|
||||
#include "BKE_editmesh.hh"
|
||||
#include "BKE_effect.h"
|
||||
#include "BKE_fcurve.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_image_format.h"
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
#include "BLT_translation.hh"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
|
@ -66,7 +66,7 @@
|
||||
#include "BKE_blender_version.h"
|
||||
#include "BKE_collection.hh"
|
||||
#include "BKE_global.hh" /* for G */
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -6,7 +6,7 @@
|
||||
* \ingroup blenloader
|
||||
*/
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
/* allow readfile to use deprecated functionality */
|
||||
|
@ -72,7 +72,7 @@
|
||||
#include "BKE_fcurve_driver.h"
|
||||
#include "BKE_freestyle.h"
|
||||
#include "BKE_gpencil_geom_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_key.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -69,7 +69,7 @@
|
||||
#include "BKE_deform.hh"
|
||||
#include "BKE_fcurve.hh"
|
||||
#include "BKE_fcurve_driver.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_override.hh"
|
||||
|
@ -53,7 +53,7 @@
|
||||
#include "BKE_curve.hh"
|
||||
#include "BKE_effect.h"
|
||||
#include "BKE_grease_pencil.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_material.h"
|
||||
#include "BKE_mesh_legacy_convert.hh"
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "BKE_animsys.h"
|
||||
#include "BKE_grease_pencil_legacy_convert.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_ipo.h"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_override.hh"
|
||||
|
@ -47,7 +47,7 @@
|
||||
#include "BKE_curveprofile.h"
|
||||
#include "BKE_customdata.hh"
|
||||
#include "BKE_gpencil_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_main.hh"
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "BKE_addon.h"
|
||||
#include "BKE_blender_version.h"
|
||||
#include "BKE_colorband.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_keyconfig.h"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_preferences.h"
|
||||
|
@ -103,7 +103,7 @@
|
||||
#include "BKE_blender_version.h"
|
||||
#include "BKE_bpath.hh"
|
||||
#include "BKE_global.hh" /* For #Global `G`. */
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -66,7 +66,7 @@
|
||||
#include "BKE_gpencil_legacy.h"
|
||||
#include "BKE_gpencil_modifier_legacy.h"
|
||||
#include "BKE_grease_pencil.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_key.hh"
|
||||
|
@ -66,7 +66,7 @@
|
||||
#include "BKE_fcurve_driver.h"
|
||||
#include "BKE_gpencil_modifier_legacy.h"
|
||||
#include "BKE_grease_pencil.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_key.hh"
|
||||
#include "BKE_layer.hh"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include "BKE_duplilist.hh"
|
||||
#include "BKE_geometry_set.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_node.hh"
|
||||
#include "BKE_object.hh"
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_gpencil_legacy.h"
|
||||
#include "BKE_gpencil_update_cache_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_mesh_types.hh"
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "BLT_translation.hh"
|
||||
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_report.hh"
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "BKE_constraint.h"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_fcurve.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_object_types.hh"
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "BKE_constraint.h"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_fcurve_driver.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_report.hh"
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include "BKE_armature.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_main.hh"
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "BKE_armature.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_object.hh"
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "BKE_armature.hh"
|
||||
#include "BKE_blender_copybuffer.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_object.hh"
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include "BKE_action.h"
|
||||
#include "BKE_anim_data.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_object.hh"
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "AS_asset_catalog.hh"
|
||||
#include "BKE_appdir.hh"
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
#include "CLG_log.h"
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "BKE_animsys.h"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_report.hh"
|
||||
#include "BKE_scene.hh"
|
||||
#include "BKE_screen.hh"
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "BKE_addon.h"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_screen.hh"
|
||||
|
||||
#include "ED_asset.hh"
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_screen.hh"
|
||||
|
||||
#include "RNA_access.hh"
|
||||
|
@ -52,7 +52,7 @@
|
||||
#include "BKE_curveprofile.h"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_gpencil_modifier_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_screen.hh"
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_modifier.hh"
|
||||
|
@ -51,7 +51,7 @@
|
||||
#include "BKE_geometry_set.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_gpencil_modifier_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_key.hh"
|
||||
#include "BKE_lattice.hh"
|
||||
#include "BKE_layer.hh"
|
||||
|
@ -50,7 +50,7 @@
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_icons.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "BKE_blender_user_menu.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_screen.hh"
|
||||
|
||||
#include "WM_api.hh"
|
||||
|
@ -58,7 +58,7 @@
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_customdata.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "DNA_space_types.h"
|
||||
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_screen.hh"
|
||||
|
||||
#include "BLT_translation.hh"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_node_runtime.hh"
|
||||
#include "BKE_node_tree_update.hh"
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "BKE_compute_contexts.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_gpencil_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
#include "BKE_lib_remap.hh"
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_gpencil_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_gpencil_modifier_legacy.h"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_main.hh"
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include "BKE_collection.hh"
|
||||
#include "BKE_customdata.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_layer.hh"
|
||||
#include "BKE_lib_id.hh" /* free_libblock */
|
||||
#include "BKE_main.hh"
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "BLI_string.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
#include "DNA_ID.h" /* ID property definitions. */
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "BLI_string.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
|
||||
#include "DNA_ID.h" /* ID property definitions. */
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include "BLI_blenlib.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "DNA_ID.h" /* ID property definitions. */
|
||||
|
||||
#include "IMB_allocimbuf.hh"
|
||||
|
@ -81,7 +81,7 @@
|
||||
#include "BLI_mmap.h"
|
||||
#include "BLI_threads.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_image.h"
|
||||
|
||||
#include "IMB_allocimbuf.hh"
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "BLI_listbase.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "DNA_ID.h"
|
||||
|
||||
using Alembic::Abc::ArraySample;
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "BKE_armature.hh"
|
||||
#include "BKE_deform.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_mesh.hh"
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_main.hh"
|
||||
#include "BKE_node.hh"
|
||||
#include "BKE_object.hh"
|
||||
|
@ -220,7 +220,7 @@ const IDFilterEnumPropertyItem rna_enum_id_type_filter_items[] = {
|
||||
|
||||
# include "BKE_anim_data.hh"
|
||||
# include "BKE_global.hh" /* XXX, remove me */
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_idtype.hh"
|
||||
# include "BKE_lib_override.hh"
|
||||
# include "BKE_lib_query.hh"
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_fcurve.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_override.hh"
|
||||
#include "BKE_main.hh"
|
||||
|
@ -35,7 +35,7 @@
|
||||
#endif
|
||||
|
||||
#include "BKE_armature.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_override.hh"
|
||||
#include "BKE_main.hh"
|
||||
|
@ -66,7 +66,7 @@ constexpr int COLOR_SETS_MAX_THEMED_INDEX = 20;
|
||||
# include "BKE_action.h"
|
||||
# include "BKE_context.hh"
|
||||
# include "BKE_global.hh"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_main.hh"
|
||||
|
||||
# include "BKE_armature.hh"
|
||||
|
@ -49,7 +49,7 @@ const EnumPropertyItem rna_enum_asset_library_type_items[] = {
|
||||
|
||||
# include "BKE_asset.hh"
|
||||
# include "BKE_context.hh"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
|
||||
# include "BLI_listbase.h"
|
||||
# include "BLI_uuid.h"
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
# include "RNA_access.hh"
|
||||
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_layer.hh"
|
||||
# include "BKE_mesh.hh"
|
||||
# include "BKE_node.hh"
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include "BKE_dynamicpaint.h"
|
||||
#include "BKE_effect.h"
|
||||
#include "BKE_fluid.h" /* For BKE_fluid_modifier_free & BKE_fluid_modifier_create_type_data */
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_mesh_mapping.hh"
|
||||
#include "BKE_mesh_remap.hh"
|
||||
#include "BKE_multires.hh"
|
||||
|
@ -549,7 +549,7 @@ static const EnumPropertyItem node_cryptomatte_layer_name_items[] = {
|
||||
# include "BLI_string.h"
|
||||
|
||||
# include "BKE_context.hh"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
|
||||
# include "BKE_global.hh"
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "BLI_string_ref.hh"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
|
||||
|
@ -75,7 +75,7 @@ const EnumPropertyItem rna_enum_color_sets_items[] = {
|
||||
# include "BKE_constraint.h"
|
||||
# include "BKE_context.hh"
|
||||
# include "BKE_global.hh"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
|
||||
# include "DEG_depsgraph.hh"
|
||||
# include "DEG_depsgraph_build.hh"
|
||||
|
@ -247,7 +247,7 @@ const EnumPropertyItem rna_enum_property_string_search_flag_items[] = {
|
||||
# include "BLI_string.h"
|
||||
# include "MEM_guardedalloc.h"
|
||||
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_lib_override.hh"
|
||||
|
||||
# include <optional>
|
||||
|
@ -724,7 +724,7 @@ const EnumPropertyItem rna_enum_grease_pencil_selectmode_items[] = {
|
||||
# include "BKE_freestyle.h"
|
||||
# include "BKE_global.hh"
|
||||
# include "BKE_gpencil_legacy.h"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_image.h"
|
||||
# include "BKE_image_format.h"
|
||||
# include "BKE_layer.hh"
|
||||
|
@ -116,7 +116,7 @@ const EnumPropertyItem rna_enum_strip_color_items[] = {
|
||||
# include <fmt/format.h>
|
||||
|
||||
# include "BKE_global.hh"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_movieclip.h"
|
||||
# include "BKE_report.hh"
|
||||
|
||||
|
@ -556,7 +556,7 @@ static const EnumPropertyItem rna_enum_curve_display_handle_items[] = {
|
||||
# include "BKE_context.hh"
|
||||
# include "BKE_global.hh"
|
||||
# include "BKE_icons.h"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_layer.hh"
|
||||
# include "BKE_nla.h"
|
||||
# include "BKE_paint.hh"
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#ifdef RNA_RUNTIME
|
||||
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_scene.hh"
|
||||
# include "BKE_screen.hh"
|
||||
# include "WM_api.hh"
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "BLT_translation.hh"
|
||||
|
||||
#include "BKE_file_handler.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_screen.hh"
|
||||
|
||||
#include "BLI_listbase.h"
|
||||
|
@ -178,7 +178,7 @@ static const EnumPropertyItem rna_enum_preference_gpu_backend_items[] = {
|
||||
|
||||
# include "BKE_blender.hh"
|
||||
# include "BKE_global.hh"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_image.h"
|
||||
# include "BKE_main.hh"
|
||||
# include "BKE_mesh_runtime.hh"
|
||||
|
@ -555,7 +555,7 @@ const EnumPropertyItem rna_enum_wm_report_items[] = {
|
||||
# include "UI_interface.hh"
|
||||
|
||||
# include "BKE_global.hh"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
|
||||
# include "MEM_guardedalloc.h"
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
# include "UI_interface.hh"
|
||||
|
||||
# include "BKE_global.hh"
|
||||
# include "BKE_idprop.h"
|
||||
# include "BKE_idprop.hh"
|
||||
# include "BKE_workspace.h"
|
||||
|
||||
# include "MEM_guardedalloc.h"
|
||||
|
@ -48,7 +48,7 @@
|
||||
#include "BKE_geometry_fields.hh"
|
||||
#include "BKE_geometry_set_instances.hh"
|
||||
#include "BKE_global.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
#include "BKE_main.hh"
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "BLI_multi_value_map.hh"
|
||||
#include "BLI_set.hh"
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_node.hh"
|
||||
|
||||
struct bNodeTree;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "BKE_compute_contexts.hh"
|
||||
#include "BKE_geometry_fields.hh"
|
||||
#include "BKE_geometry_set.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BKE_node_enum.hh"
|
||||
#include "BKE_node_runtime.hh"
|
||||
#include "BKE_node_socket_value.hh"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user