Cleanup: use 'cb_flag', not 'cd_flag' for library_query callbacks.
`cd_flag` tends to be used for CustomData flags in mesh area, while for library_query those are rather callback flags...
This commit is contained in:
parent
60e387f5e3
commit
b5682a6fdd
|
@ -71,7 +71,7 @@ enum {
|
|||
*
|
||||
* \return a set of flags to control further iteration (0 to keep going).
|
||||
*/
|
||||
typedef int (*LibraryIDLinkCallback) (void *user_data, struct ID *id_self, struct ID **id_pointer, int cd_flag);
|
||||
typedef int (*LibraryIDLinkCallback) (void *user_data, struct ID *id_self, struct ID **id_pointer, int cb_flag);
|
||||
|
||||
/* Flags for the foreach function itself. */
|
||||
enum {
|
||||
|
@ -83,7 +83,7 @@ enum {
|
|||
/* Loop over all of the ID's this datablock links to. */
|
||||
void BKE_library_foreach_ID_link(
|
||||
struct Main *bmain, struct ID *id, LibraryIDLinkCallback callback, void *user_data, int flag);
|
||||
void BKE_library_update_ID_link_user(struct ID *id_dst, struct ID *id_src, const int cd_flag);
|
||||
void BKE_library_update_ID_link_user(struct ID *id_dst, struct ID *id_src, const int cb_flag);
|
||||
|
||||
int BKE_library_ID_use_ID(struct ID *id_user, struct ID *id_used);
|
||||
|
||||
|
|
|
@ -106,8 +106,8 @@ typedef enum {
|
|||
} ModifierTypeFlag;
|
||||
|
||||
/* IMPORTANT! Keep ObjectWalkFunc and IDWalkFunc signatures compatible. */
|
||||
typedef void (*ObjectWalkFunc)(void *userData, struct Object *ob, struct Object **obpoin, int cd_flag);
|
||||
typedef void (*IDWalkFunc)(void *userData, struct Object *ob, struct ID **idpoin, int cd_flag);
|
||||
typedef void (*ObjectWalkFunc)(void *userData, struct Object *ob, struct Object **obpoin, int cb_flag);
|
||||
typedef void (*IDWalkFunc)(void *userData, struct Object *ob, struct ID **idpoin, int cb_flag);
|
||||
typedef void (*TexWalkFunc)(void *userData, struct Object *ob, struct ModifierData *md, const char *propname);
|
||||
|
||||
typedef enum ModifierApplyFlag {
|
||||
|
|
|
@ -384,7 +384,7 @@ void psys_get_birth_coords(struct ParticleSimulationData *sim, struct ParticleDa
|
|||
void particle_system_update(struct Scene *scene, struct Object *ob, struct ParticleSystem *psys, const bool use_render_params);
|
||||
|
||||
/* Callback format for performing operations on ID-pointers for particle systems */
|
||||
typedef void (*ParticleSystemIDFunc)(struct ParticleSystem *psys, struct ID **idpoin, void *userdata, int cd_flag);
|
||||
typedef void (*ParticleSystemIDFunc)(struct ParticleSystem *psys, struct ID **idpoin, void *userdata, int cb_flag);
|
||||
|
||||
void BKE_particlesystem_id_loop(struct ParticleSystem *psys, ParticleSystemIDFunc func, void *userdata);
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ struct RigidBodyOb *BKE_rigidbody_copy_object(struct Object *ob);
|
|||
struct RigidBodyCon *BKE_rigidbody_copy_constraint(struct Object *ob);
|
||||
|
||||
/* Callback format for performing operations on ID-pointers for rigidbody world. */
|
||||
typedef void (*RigidbodyWorldIDFunc)(struct RigidBodyWorld *rbw, struct ID **idpoin, void *userdata, int cd_flag);
|
||||
typedef void (*RigidbodyWorldIDFunc)(struct RigidBodyWorld *rbw, struct ID **idpoin, void *userdata, int cb_flag);
|
||||
|
||||
void BKE_rigidbody_world_id_loop(struct RigidBodyWorld *rbw, RigidbodyWorldIDFunc func, void *userdata);
|
||||
|
||||
|
|
|
@ -77,9 +77,9 @@ void sca_move_controller(struct bController *cont_to_move, struct Object *ob, in
|
|||
void sca_move_actuator(struct bActuator *act_to_move, struct Object *ob, int move_up);
|
||||
|
||||
/* Callback format for performing operations on ID-pointers for sensors/controllers/actuators. */
|
||||
typedef void (*SCASensorIDFunc)(struct bSensor *sensor, struct ID **idpoin, void *userdata, int cd_flag);
|
||||
typedef void (*SCAControllerIDFunc)(struct bController *controller, struct ID **idpoin, void *userdata, int cd_flag);
|
||||
typedef void (*SCAActuatorIDFunc)(struct bActuator *actuator, struct ID **idpoin, void *userdata, int cd_flag);
|
||||
typedef void (*SCASensorIDFunc)(struct bSensor *sensor, struct ID **idpoin, void *userdata, int cb_flag);
|
||||
typedef void (*SCAControllerIDFunc)(struct bController *controller, struct ID **idpoin, void *userdata, int cb_flag);
|
||||
typedef void (*SCAActuatorIDFunc)(struct bActuator *actuator, struct ID **idpoin, void *userdata, int cb_flag);
|
||||
|
||||
void BKE_sca_sensors_id_loop(struct ListBase *senslist, SCASensorIDFunc func, void *userdata);
|
||||
void BKE_sca_controllers_id_loop(struct ListBase *contlist, SCAControllerIDFunc func, void *userdata);
|
||||
|
|
|
@ -2563,7 +2563,7 @@ void DAG_on_visible_update(Main *bmain, const bool do_time)
|
|||
}
|
||||
|
||||
static void dag_id_flush_update__isDependentTexture(
|
||||
void *userData, Object *UNUSED(ob), ID **idpoin, int UNUSED(cd_flag))
|
||||
void *userData, Object *UNUSED(ob), ID **idpoin, int UNUSED(cb_flag))
|
||||
{
|
||||
struct { ID *id; bool is_dependent; } *data = userData;
|
||||
|
||||
|
|
|
@ -274,9 +274,9 @@ void BKE_id_clear_newpoin(ID *id)
|
|||
}
|
||||
|
||||
static int id_expand_local_callback(
|
||||
void *UNUSED(user_data), struct ID *id_self, struct ID **id_pointer, int cd_flag)
|
||||
void *UNUSED(user_data), struct ID *id_self, struct ID **id_pointer, int cb_flag)
|
||||
{
|
||||
if (cd_flag & IDWALK_CB_PRIVATE) {
|
||||
if (cb_flag & IDWALK_CB_PRIVATE) {
|
||||
return IDWALK_RET_NOP;
|
||||
}
|
||||
|
||||
|
@ -1278,7 +1278,7 @@ void BKE_main_unlock(struct Main *bmain)
|
|||
}
|
||||
|
||||
|
||||
static int main_relations_create_cb(void *user_data, ID *id_self, ID **id_pointer, int cd_flag)
|
||||
static int main_relations_create_cb(void *user_data, ID *id_self, ID **id_pointer, int cb_flag)
|
||||
{
|
||||
MainIDRelations *rel = user_data;
|
||||
|
||||
|
@ -1293,7 +1293,7 @@ static int main_relations_create_cb(void *user_data, ID *id_self, ID **id_pointe
|
|||
entry->next = NULL;
|
||||
}
|
||||
entry->id_pointer = id_pointer;
|
||||
entry->usage_flag = cd_flag;
|
||||
entry->usage_flag = cb_flag;
|
||||
*entry_p = entry;
|
||||
|
||||
entry = BLI_mempool_alloc(rel->entry_pool);
|
||||
|
@ -1304,7 +1304,7 @@ static int main_relations_create_cb(void *user_data, ID *id_self, ID **id_pointe
|
|||
entry->next = NULL;
|
||||
}
|
||||
entry->id_pointer = (ID **)id_self;
|
||||
entry->usage_flag = cd_flag;
|
||||
entry->usage_flag = cb_flag;
|
||||
*entry_p = entry;
|
||||
}
|
||||
|
||||
|
|
|
@ -84,12 +84,12 @@
|
|||
#define FOREACH_FINALIZE _finalize
|
||||
#define FOREACH_FINALIZE_VOID FOREACH_FINALIZE: (void)0
|
||||
|
||||
#define FOREACH_CALLBACK_INVOKE_ID_PP(_data, id_pp, cb_flag) \
|
||||
#define FOREACH_CALLBACK_INVOKE_ID_PP(_data, id_pp, _cb_flag) \
|
||||
CHECK_TYPE(id_pp, ID **); \
|
||||
if (!((_data)->status & IDWALK_STOP)) { \
|
||||
const int _flag = (_data)->flag; \
|
||||
ID *old_id = *(id_pp); \
|
||||
const int callback_return = (_data)->callback((_data)->user_data, (_data)->self_id, id_pp, cb_flag | (_data)->cd_flag); \
|
||||
const int callback_return = (_data)->callback((_data)->user_data, (_data)->self_id, id_pp, _cb_flag | (_data)->cb_flag); \
|
||||
if (_flag & IDWALK_READONLY) { \
|
||||
BLI_assert(*(id_pp) == old_id); \
|
||||
} \
|
||||
|
@ -130,7 +130,7 @@ enum {
|
|||
typedef struct LibraryForeachIDData {
|
||||
ID *self_id;
|
||||
int flag;
|
||||
int cd_flag;
|
||||
int cb_flag;
|
||||
LibraryIDLinkCallback callback;
|
||||
void *user_data;
|
||||
int status;
|
||||
|
@ -141,19 +141,19 @@ typedef struct LibraryForeachIDData {
|
|||
} LibraryForeachIDData;
|
||||
|
||||
static void library_foreach_rigidbodyworldSceneLooper(
|
||||
struct RigidBodyWorld *UNUSED(rbw), ID **id_pointer, void *user_data, int cd_flag)
|
||||
struct RigidBodyWorld *UNUSED(rbw), ID **id_pointer, void *user_data, int cb_flag)
|
||||
{
|
||||
LibraryForeachIDData *data = (LibraryForeachIDData *) user_data;
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cd_flag);
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cb_flag);
|
||||
|
||||
FOREACH_FINALIZE_VOID;
|
||||
}
|
||||
|
||||
static void library_foreach_modifiersForeachIDLink(
|
||||
void *user_data, Object *UNUSED(object), ID **id_pointer, int cd_flag)
|
||||
void *user_data, Object *UNUSED(object), ID **id_pointer, int cb_flag)
|
||||
{
|
||||
LibraryForeachIDData *data = (LibraryForeachIDData *) user_data;
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cd_flag);
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cb_flag);
|
||||
|
||||
FOREACH_FINALIZE_VOID;
|
||||
}
|
||||
|
@ -162,44 +162,44 @@ static void library_foreach_constraintObjectLooper(bConstraint *UNUSED(con), ID
|
|||
bool is_reference, void *user_data)
|
||||
{
|
||||
LibraryForeachIDData *data = (LibraryForeachIDData *) user_data;
|
||||
const int cd_flag = is_reference ? IDWALK_CB_USER : IDWALK_CB_NOP;
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cd_flag);
|
||||
const int cb_flag = is_reference ? IDWALK_CB_USER : IDWALK_CB_NOP;
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cb_flag);
|
||||
|
||||
FOREACH_FINALIZE_VOID;
|
||||
}
|
||||
|
||||
static void library_foreach_particlesystemsObjectLooper(
|
||||
ParticleSystem *UNUSED(psys), ID **id_pointer, void *user_data, int cd_flag)
|
||||
ParticleSystem *UNUSED(psys), ID **id_pointer, void *user_data, int cb_flag)
|
||||
{
|
||||
LibraryForeachIDData *data = (LibraryForeachIDData *) user_data;
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cd_flag);
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cb_flag);
|
||||
|
||||
FOREACH_FINALIZE_VOID;
|
||||
}
|
||||
|
||||
static void library_foreach_sensorsObjectLooper(
|
||||
bSensor *UNUSED(sensor), ID **id_pointer, void *user_data, int cd_flag)
|
||||
bSensor *UNUSED(sensor), ID **id_pointer, void *user_data, int cb_flag)
|
||||
{
|
||||
LibraryForeachIDData *data = (LibraryForeachIDData *) user_data;
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cd_flag);
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cb_flag);
|
||||
|
||||
FOREACH_FINALIZE_VOID;
|
||||
}
|
||||
|
||||
static void library_foreach_controllersObjectLooper(
|
||||
bController *UNUSED(controller), ID **id_pointer, void *user_data, int cd_flag)
|
||||
bController *UNUSED(controller), ID **id_pointer, void *user_data, int cb_flag)
|
||||
{
|
||||
LibraryForeachIDData *data = (LibraryForeachIDData *) user_data;
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cd_flag);
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cb_flag);
|
||||
|
||||
FOREACH_FINALIZE_VOID;
|
||||
}
|
||||
|
||||
static void library_foreach_actuatorsObjectLooper(
|
||||
bActuator *UNUSED(actuator), ID **id_pointer, void *user_data, int cd_flag)
|
||||
bActuator *UNUSED(actuator), ID **id_pointer, void *user_data, int cb_flag)
|
||||
{
|
||||
LibraryForeachIDData *data = (LibraryForeachIDData *) user_data;
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cd_flag);
|
||||
FOREACH_CALLBACK_INVOKE_ID_PP(data, id_pointer, cb_flag);
|
||||
|
||||
FOREACH_FINALIZE_VOID;
|
||||
}
|
||||
|
@ -323,7 +323,7 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call
|
|||
|
||||
for (; id != NULL; id = (flag & IDWALK_RECURSE) ? BLI_LINKSTACK_POP(data.ids_todo) : NULL) {
|
||||
data.self_id = id;
|
||||
data.cd_flag = ID_IS_LINKED_DATABLOCK(id) ? IDWALK_CB_INDIRECT_USAGE : 0;
|
||||
data.cb_flag = ID_IS_LINKED_DATABLOCK(id) ? IDWALK_CB_INDIRECT_USAGE : 0;
|
||||
|
||||
if (bmain != NULL && bmain->relations != NULL && (flag & IDWALK_READONLY)) {
|
||||
/* Note that this is minor optimization, even in worst cases (like id being an object with lots of
|
||||
|
@ -461,11 +461,11 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call
|
|||
ParticleSystem *psys;
|
||||
|
||||
/* Object is special, proxies make things hard... */
|
||||
const int data_cd_flag = data.cd_flag;
|
||||
const int proxy_cd_flag = (object->proxy || object->proxy_group) ? IDWALK_CB_INDIRECT_USAGE : 0;
|
||||
const int data_cb_flag = data.cb_flag;
|
||||
const int proxy_cb_flag = (object->proxy || object->proxy_group) ? IDWALK_CB_INDIRECT_USAGE : 0;
|
||||
|
||||
/* object data special case */
|
||||
data.cd_flag |= proxy_cd_flag;
|
||||
data.cb_flag |= proxy_cb_flag;
|
||||
if (object->type == OB_EMPTY) {
|
||||
/* empty can have NULL or Image */
|
||||
CALLBACK_INVOKE_ID(object->data, IDWALK_CB_USER);
|
||||
|
@ -476,7 +476,7 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call
|
|||
CALLBACK_INVOKE_ID(object->data, IDWALK_CB_USER | IDWALK_CB_NEVER_NULL);
|
||||
}
|
||||
}
|
||||
data.cd_flag = data_cd_flag;
|
||||
data.cb_flag = data_cb_flag;
|
||||
|
||||
CALLBACK_INVOKE(object->parent, IDWALK_CB_NOP);
|
||||
CALLBACK_INVOKE(object->track, IDWALK_CB_NOP);
|
||||
|
@ -488,18 +488,18 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call
|
|||
* Since this field is set/owned by 'user' of this ID (and not ID itself), it is only indirect usage
|
||||
* if proxy object is linked... Twisted. */
|
||||
if (object->proxy_from) {
|
||||
data.cd_flag = ID_IS_LINKED_DATABLOCK(object->proxy_from) ? IDWALK_CB_INDIRECT_USAGE : 0;
|
||||
data.cb_flag = ID_IS_LINKED_DATABLOCK(object->proxy_from) ? IDWALK_CB_INDIRECT_USAGE : 0;
|
||||
}
|
||||
CALLBACK_INVOKE(object->proxy_from, IDWALK_CB_NOP);
|
||||
data.cd_flag = data_cd_flag;
|
||||
data.cb_flag = data_cb_flag;
|
||||
|
||||
CALLBACK_INVOKE(object->poselib, IDWALK_CB_USER);
|
||||
|
||||
data.cd_flag |= proxy_cd_flag;
|
||||
data.cb_flag |= proxy_cb_flag;
|
||||
for (i = 0; i < object->totcol; i++) {
|
||||
CALLBACK_INVOKE(object->mat[i], IDWALK_CB_USER);
|
||||
}
|
||||
data.cd_flag = data_cd_flag;
|
||||
data.cb_flag = data_cb_flag;
|
||||
|
||||
CALLBACK_INVOKE(object->gpd, IDWALK_CB_USER);
|
||||
CALLBACK_INVOKE(object->dup_group, IDWALK_CB_USER);
|
||||
|
@ -513,12 +513,12 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call
|
|||
if (object->pose) {
|
||||
bPoseChannel *pchan;
|
||||
|
||||
data.cd_flag |= proxy_cd_flag;
|
||||
data.cb_flag |= proxy_cb_flag;
|
||||
for (pchan = object->pose->chanbase.first; pchan; pchan = pchan->next) {
|
||||
CALLBACK_INVOKE(pchan->custom, IDWALK_CB_USER);
|
||||
BKE_constraints_id_loop(&pchan->constraints, library_foreach_constraintObjectLooper, &data);
|
||||
}
|
||||
data.cd_flag = data_cd_flag;
|
||||
data.cb_flag = data_cb_flag;
|
||||
}
|
||||
|
||||
if (object->rigidbody_constraint) {
|
||||
|
@ -929,13 +929,13 @@ FOREACH_FINALIZE:
|
|||
/**
|
||||
* re-usable function, use when replacing ID's
|
||||
*/
|
||||
void BKE_library_update_ID_link_user(ID *id_dst, ID *id_src, const int cd_flag)
|
||||
void BKE_library_update_ID_link_user(ID *id_dst, ID *id_src, const int cb_flag)
|
||||
{
|
||||
if (cd_flag & IDWALK_CB_USER) {
|
||||
if (cb_flag & IDWALK_CB_USER) {
|
||||
id_us_min(id_src);
|
||||
id_us_plus(id_dst);
|
||||
}
|
||||
else if (cd_flag & IDWALK_CB_USER_ONE) {
|
||||
else if (cb_flag & IDWALK_CB_USER_ONE) {
|
||||
id_us_ensure_real(id_dst);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -689,9 +689,9 @@ void BKE_libblock_relink_ex(
|
|||
}
|
||||
}
|
||||
|
||||
static int id_relink_to_newid_looper(void *UNUSED(user_data), ID *UNUSED(self_id), ID **id_pointer, const int cd_flag)
|
||||
static int id_relink_to_newid_looper(void *UNUSED(user_data), ID *UNUSED(self_id), ID **id_pointer, const int cb_flag)
|
||||
{
|
||||
if (cd_flag & IDWALK_CB_PRIVATE) {
|
||||
if (cb_flag & IDWALK_CB_PRIVATE) {
|
||||
return IDWALK_RET_NOP;
|
||||
}
|
||||
|
||||
|
@ -699,7 +699,7 @@ static int id_relink_to_newid_looper(void *UNUSED(user_data), ID *UNUSED(self_id
|
|||
if (id) {
|
||||
/* See: NEW_ID macro */
|
||||
if (id->newid) {
|
||||
BKE_library_update_ID_link_user(id->newid, id, cd_flag);
|
||||
BKE_library_update_ID_link_user(id->newid, id, cb_flag);
|
||||
*id_pointer = id->newid;
|
||||
}
|
||||
else if (id->tag & LIB_TAG_NEW) {
|
||||
|
|
|
@ -4708,12 +4708,12 @@ static void direct_link_latt(FileData *fd, Lattice *lt)
|
|||
/* ************ READ OBJECT ***************** */
|
||||
|
||||
static void lib_link_modifiers__linkModifiers(
|
||||
void *userData, Object *ob, ID **idpoin, int cd_flag)
|
||||
void *userData, Object *ob, ID **idpoin, int cb_flag)
|
||||
{
|
||||
FileData *fd = userData;
|
||||
|
||||
*idpoin = newlibadr(fd, ob->id.lib, *idpoin);
|
||||
if (*idpoin != NULL && (cd_flag & IDWALK_CB_USER) != 0) {
|
||||
if (*idpoin != NULL && (cb_flag & IDWALK_CB_USER) != 0) {
|
||||
id_us_plus_no_lib(*idpoin);
|
||||
}
|
||||
}
|
||||
|
@ -9303,7 +9303,7 @@ static void expand_armature(FileData *fd, Main *mainvar, bArmature *arm)
|
|||
}
|
||||
|
||||
static void expand_object_expandModifiers(
|
||||
void *userData, Object *UNUSED(ob), ID **idpoin, int UNUSED(cd_flag))
|
||||
void *userData, Object *UNUSED(ob), ID **idpoin, int UNUSED(cb_flag))
|
||||
{
|
||||
struct { FileData *fd; Main *mainvar; } *data= userData;
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ struct BuilderWalkUserData {
|
|||
static void modifier_walk(void *user_data,
|
||||
struct Object * /*ob*/,
|
||||
struct Object **obpoin,
|
||||
int /*cd_flag*/)
|
||||
int /*cb_flag*/)
|
||||
{
|
||||
BuilderWalkUserData *data = (BuilderWalkUserData *)user_data;
|
||||
if (*obpoin) {
|
||||
|
|
|
@ -2223,7 +2223,7 @@ typedef struct tAnimFilterModifiersContext {
|
|||
|
||||
|
||||
/* dependency walker callback for modifier dependencies */
|
||||
static void animfilter_modifier_idpoin_cb(void *afm_ptr, Object *ob, ID **idpoin, int UNUSED(cd_flag))
|
||||
static void animfilter_modifier_idpoin_cb(void *afm_ptr, Object *ob, ID **idpoin, int UNUSED(cb_flag))
|
||||
{
|
||||
tAnimFilterModifiersContext *afm = (tAnimFilterModifiersContext *)afm_ptr;
|
||||
ID *owner_id = &ob->id;
|
||||
|
|
|
@ -2133,7 +2133,7 @@ enum {
|
|||
};
|
||||
|
||||
static int tag_localizable_looper(
|
||||
void *UNUSED(user_data), ID *UNUSED(self_id), ID **id_pointer, const int UNUSED(cd_flag))
|
||||
void *UNUSED(user_data), ID *UNUSED(self_id), ID **id_pointer, const int UNUSED(cb_flag))
|
||||
{
|
||||
if (*id_pointer) {
|
||||
(*id_pointer)->tag &= ~LIB_TAG_DOIT;
|
||||
|
|
|
@ -3910,9 +3910,9 @@ static void previews_id_ensure(bContext *C, Scene *scene, ID *id)
|
|||
}
|
||||
}
|
||||
|
||||
static int previews_id_ensure_callback(void *userdata, ID *UNUSED(self_id), ID **idptr, int cd_flag)
|
||||
static int previews_id_ensure_callback(void *userdata, ID *UNUSED(self_id), ID **idptr, int cb_flag)
|
||||
{
|
||||
if (cd_flag & IDWALK_CB_PRIVATE) {
|
||||
if (cb_flag & IDWALK_CB_PRIVATE) {
|
||||
return IDWALK_RET_NOP;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue