Cleanup: use tern 'sync' instead of 'synchronization' for function names
This is a common, unambiguous abbreviation already used throughout the code-base.
This commit is contained in:
@@ -277,7 +277,7 @@ void BKE_object_eval_uber_data(struct Depsgraph *depsgraph,
|
|||||||
void BKE_object_eval_assign_data(struct Object *object, struct ID *data, bool is_owned);
|
void BKE_object_eval_assign_data(struct Object *object, struct ID *data, bool is_owned);
|
||||||
|
|
||||||
void BKE_object_eval_boundbox(struct Depsgraph *depsgraph, struct Object *object);
|
void BKE_object_eval_boundbox(struct Depsgraph *depsgraph, struct Object *object);
|
||||||
void BKE_object_synchronize_to_original(struct Depsgraph *depsgraph, struct Object *object);
|
void BKE_object_sync_to_original(struct Depsgraph *depsgraph, struct Object *object);
|
||||||
|
|
||||||
void BKE_object_eval_ptcache_reset(struct Depsgraph *depsgraph,
|
void BKE_object_eval_ptcache_reset(struct Depsgraph *depsgraph,
|
||||||
struct Scene *scene,
|
struct Scene *scene,
|
||||||
|
@@ -2523,7 +2523,7 @@ void BKE_armature_where_is(bArmature *arm)
|
|||||||
|
|
||||||
/* if bone layer is protected, copy the data from from->pose
|
/* if bone layer is protected, copy the data from from->pose
|
||||||
* when used with linked libraries this copies from the linked pose into the local pose */
|
* when used with linked libraries this copies from the linked pose into the local pose */
|
||||||
static void pose_proxy_synchronize(Object *ob, Object *from, int layer_protected)
|
static void pose_proxy_sync(Object *ob, Object *from, int layer_protected)
|
||||||
{
|
{
|
||||||
bPose *pose = ob->pose, *frompose = from->pose;
|
bPose *pose = ob->pose, *frompose = from->pose;
|
||||||
bPoseChannel *pchan, *pchanp;
|
bPoseChannel *pchan, *pchanp;
|
||||||
@@ -2786,7 +2786,7 @@ void BKE_pose_rebuild(Main *bmain, Object *ob, bArmature *arm, const bool do_id_
|
|||||||
* using COW tag was working this morning, but not anymore... */
|
* using COW tag was working this morning, but not anymore... */
|
||||||
if (ob->proxy != NULL && (ob->id.tag & LIB_TAG_NO_MAIN) == 0) {
|
if (ob->proxy != NULL && (ob->id.tag & LIB_TAG_NO_MAIN) == 0) {
|
||||||
BKE_object_copy_proxy_drivers(ob, ob->proxy);
|
BKE_object_copy_proxy_drivers(ob, ob->proxy);
|
||||||
pose_proxy_synchronize(ob, ob->proxy, arm->layer_protected);
|
pose_proxy_sync(ob, ob->proxy, arm->layer_protected);
|
||||||
}
|
}
|
||||||
|
|
||||||
BKE_pose_update_constraint_flags(pose); /* for IK detection for example */
|
BKE_pose_update_constraint_flags(pose); /* for IK detection for example */
|
||||||
|
@@ -1744,7 +1744,7 @@ bool BKE_movieclip_put_frame_if_possible(MovieClip *clip, MovieClipUser *user, I
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void movieclip_selection_synchronize(MovieClip *clip_dst, const MovieClip *clip_src)
|
static void movieclip_selection_sync(MovieClip *clip_dst, const MovieClip *clip_src)
|
||||||
{
|
{
|
||||||
BLI_assert(clip_dst != clip_src);
|
BLI_assert(clip_dst != clip_src);
|
||||||
MovieTracking *tracking_dst = &clip_dst->tracking, tracking_src = clip_src->tracking;
|
MovieTracking *tracking_dst = &clip_dst->tracking, tracking_src = clip_src->tracking;
|
||||||
@@ -1811,5 +1811,5 @@ void BKE_movieclip_eval_update(struct Depsgraph *depsgraph, Main *bmain, MovieCl
|
|||||||
void BKE_movieclip_eval_selection_update(struct Depsgraph *depsgraph, MovieClip *clip)
|
void BKE_movieclip_eval_selection_update(struct Depsgraph *depsgraph, MovieClip *clip)
|
||||||
{
|
{
|
||||||
DEG_debug_print_eval(depsgraph, __func__, clip->id.name, clip);
|
DEG_debug_print_eval(depsgraph, __func__, clip->id.name, clip);
|
||||||
movieclip_selection_synchronize(clip, (MovieClip *)clip->id.orig_id);
|
movieclip_selection_sync(clip, (MovieClip *)clip->id.orig_id);
|
||||||
}
|
}
|
||||||
|
@@ -273,7 +273,7 @@ void BKE_object_handle_data_update(Depsgraph *depsgraph, Scene *scene, Object *o
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO(sergey): Ensure that bounding box is already calculated, and move this
|
* TODO(sergey): Ensure that bounding box is already calculated, and move this
|
||||||
* into #BKE_object_synchronize_to_original().
|
* into #BKE_object_sync_to_original().
|
||||||
*/
|
*/
|
||||||
void BKE_object_eval_boundbox(Depsgraph *depsgraph, Object *object)
|
void BKE_object_eval_boundbox(Depsgraph *depsgraph, Object *object)
|
||||||
{
|
{
|
||||||
@@ -290,7 +290,7 @@ void BKE_object_eval_boundbox(Depsgraph *depsgraph, Object *object)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BKE_object_synchronize_to_original(Depsgraph *depsgraph, Object *object)
|
void BKE_object_sync_to_original(Depsgraph *depsgraph, Object *object)
|
||||||
{
|
{
|
||||||
if (!DEG_is_active(depsgraph)) {
|
if (!DEG_is_active(depsgraph)) {
|
||||||
return;
|
return;
|
||||||
|
@@ -652,7 +652,7 @@ void DepsgraphNodeBuilder::build_object(int base_index,
|
|||||||
add_operation_node(&object->id,
|
add_operation_node(&object->id,
|
||||||
NodeType::SYNCHRONIZATION,
|
NodeType::SYNCHRONIZATION,
|
||||||
OperationCode::SYNCHRONIZE_TO_ORIGINAL,
|
OperationCode::SYNCHRONIZE_TO_ORIGINAL,
|
||||||
function_bind(BKE_object_synchronize_to_original, _1, object_cow));
|
function_bind(BKE_object_sync_to_original, _1, object_cow));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DepsgraphNodeBuilder::build_object_flags(int base_index,
|
void DepsgraphNodeBuilder::build_object_flags(int base_index,
|
||||||
|
Reference in New Issue
Block a user