Cleanup: style
This commit is contained in:
@@ -911,7 +911,8 @@ eFCU_Cycle_Type BKE_fcurve_get_cycle_type(FCurve *fcu)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ELEM(data->before_mode, FCM_EXTRAPOLATE_CYCLIC, FCM_EXTRAPOLATE_CYCLIC_OFFSET) &&
|
if (ELEM(data->before_mode, FCM_EXTRAPOLATE_CYCLIC, FCM_EXTRAPOLATE_CYCLIC_OFFSET) &&
|
||||||
ELEM(data->after_mode, FCM_EXTRAPOLATE_CYCLIC, FCM_EXTRAPOLATE_CYCLIC_OFFSET)) {
|
ELEM(data->after_mode, FCM_EXTRAPOLATE_CYCLIC, FCM_EXTRAPOLATE_CYCLIC_OFFSET))
|
||||||
|
{
|
||||||
return FCU_CYCLE_OFFSET;
|
return FCU_CYCLE_OFFSET;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -834,8 +834,8 @@ void BKE_object_init(Object *ob)
|
|||||||
ob->empty_drawsize = 1.0;
|
ob->empty_drawsize = 1.0;
|
||||||
ob->empty_image_depth = OB_EMPTY_IMAGE_DEPTH_DEFAULT;
|
ob->empty_image_depth = OB_EMPTY_IMAGE_DEPTH_DEFAULT;
|
||||||
ob->empty_image_visibility_flag = (
|
ob->empty_image_visibility_flag = (
|
||||||
OB_EMPTY_IMAGE_VISIBLE_PERSPECTIVE
|
OB_EMPTY_IMAGE_VISIBLE_PERSPECTIVE |
|
||||||
| OB_EMPTY_IMAGE_VISIBLE_ORTHOGRAPHIC);
|
OB_EMPTY_IMAGE_VISIBLE_ORTHOGRAPHIC);
|
||||||
if (ob->type == OB_EMPTY) {
|
if (ob->type == OB_EMPTY) {
|
||||||
copy_v2_fl(ob->ima_ofs, -0.5f);
|
copy_v2_fl(ob->ima_ofs, -0.5f);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2222,8 +2222,8 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
|||||||
|
|
||||||
for (Object *ob = bmain->object.first; ob; ob = ob->id.next) {
|
for (Object *ob = bmain->object.first; ob; ob = ob->id.next) {
|
||||||
ob->empty_image_visibility_flag = (
|
ob->empty_image_visibility_flag = (
|
||||||
OB_EMPTY_IMAGE_VISIBLE_PERSPECTIVE
|
OB_EMPTY_IMAGE_VISIBLE_PERSPECTIVE |
|
||||||
| OB_EMPTY_IMAGE_VISIBLE_ORTHOGRAPHIC);
|
OB_EMPTY_IMAGE_VISIBLE_ORTHOGRAPHIC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ static eFCU_Cycle_Type remap_cyclic_keyframe_location(FCurve *fcu, float *px, fl
|
|||||||
|
|
||||||
if (type == FCU_CYCLE_OFFSET) {
|
if (type == FCU_CYCLE_OFFSET) {
|
||||||
/* Nasty check to handle the case when the modes are different better. */
|
/* Nasty check to handle the case when the modes are different better. */
|
||||||
FMod_Cycles *data = (FMod_Cycles *)((FModifier*)fcu->modifiers.first)->data;
|
FMod_Cycles *data = ((FModifier *)fcu->modifiers.first)->data;
|
||||||
short mode = (step >= 0) ? data->after_mode : data->before_mode;
|
short mode = (step >= 0) ? data->after_mode : data->before_mode;
|
||||||
|
|
||||||
if (mode == FCM_EXTRAPOLATE_CYCLIC_OFFSET) {
|
if (mode == FCM_EXTRAPOLATE_CYCLIC_OFFSET) {
|
||||||
|
|||||||
Reference in New Issue
Block a user