Depsgraph: Remove clear of legacy unused flag

This commit is contained in:
2017-12-01 12:18:19 +01:00
parent a96e97a83f
commit 3b706723ac
3 changed files with 0 additions and 17 deletions

View File

@@ -700,8 +700,6 @@ void BKE_pose_eval_flush(const struct EvaluationContext *UNUSED(eval_ctx),
/* 6. release the IK tree */
BIK_release_tree(scene, ob, ctime);
ob->recalc &= ~OB_RECALC_ALL;
}
void BKE_pose_eval_proxy_copy(const struct EvaluationContext *UNUSED(eval_ctx), Object *ob)
@@ -712,8 +710,4 @@ void BKE_pose_eval_proxy_copy(const struct EvaluationContext *UNUSED(eval_ctx),
printf("Proxy copy error, lib Object: %s proxy Object: %s\n",
ob->id.name + 2, ob->proxy_from->id.name + 2);
}
/* Rest of operations are NO-OP in depsgraph, so can clear
* flag now.
*/
ob->recalc &= ~OB_RECALC_ALL;
}

View File

@@ -299,10 +299,6 @@ bool BKE_object_eval_proxy_copy(const EvaluationContext *UNUSED(eval_ctx),
void BKE_object_eval_uber_transform(const EvaluationContext *eval_ctx, Object *object)
{
BKE_object_eval_proxy_copy(eval_ctx, object);
object->recalc &= ~(OB_RECALC_OB | OB_RECALC_TIME);
if (object->data == NULL) {
object->recalc &= ~OB_RECALC_DATA;
}
}
void BKE_object_eval_uber_data(const EvaluationContext *eval_ctx,
@@ -381,8 +377,6 @@ void BKE_object_eval_uber_data(const EvaluationContext *eval_ctx,
#endif
}
}
ob->recalc &= ~(OB_RECALC_DATA | OB_RECALC_TIME);
}
void BKE_object_eval_cloth(const EvaluationContext *UNUSED(eval_ctx),

View File

@@ -5509,11 +5509,6 @@ static void direct_link_object(FileData *fd, Object *ob)
/* weak weak... this was only meant as draw flag, now is used in give_base_to_objects too */
ob->flag &= ~OB_FROMGROUP;
/* This is a transient flag; clear in order to avoid unneeded object update pending from
* time when file was saved.
*/
ob->recalc = 0;
/* XXX This should not be needed - but seems like it can happen in some cases, so for now play safe... */
ob->proxy_from = NULL;