Cleanup: Snake style in depsgraph

While it's kind of common to use camel case in C++ this is not
currently agreed style for C++ in Blender.

Got confused by working on other areas with 3rd party libraries.
This commit is contained in:
Sergey Sharybin 2019-02-28 18:39:55 +01:00
parent d3294fd93f
commit f864cbd705
4 changed files with 6 additions and 6 deletions

@ -80,7 +80,7 @@ void visibility_animated_check_cb(ID * /*id*/, FCurve *fcu, void *user_data)
}
}
bool isObjectVisibilityAnimated(Depsgraph *graph, Object *object)
bool is_object_visibility_animated(Depsgraph *graph, Object *object)
{
AnimData* anim_data = BKE_animdata_from_id(&object->id);
if (anim_data == NULL) {
@ -100,14 +100,14 @@ DepsgraphBuilder::DepsgraphBuilder(Main *bmain, Depsgraph *graph)
graph_(graph) {
}
bool DepsgraphBuilder::needPullBaseIntoGraph(struct Base *base)
bool DepsgraphBuilder::need_pull_base_into_graph(struct Base *base)
{
const int base_flag = (graph_->mode == DAG_EVAL_VIEWPORT) ?
BASE_ENABLED_VIEWPORT : BASE_ENABLED_RENDER;
if (base->flag & base_flag) {
return true;
}
if (isObjectVisibilityAnimated(graph_, base->object)) {
if (is_object_visibility_animated(graph_, base->object)) {
return true;
}
return false;

@ -32,7 +32,7 @@ struct Depsgraph;
class DepsgraphBuilder {
public:
bool needPullBaseIntoGraph(struct Base *base);
bool need_pull_base_into_graph(struct Base *base);
protected:
DepsgraphBuilder(Main *bmain, Depsgraph *graph);

@ -99,7 +99,7 @@ void DepsgraphNodeBuilder::build_view_layer(
int base_index = 0;
LISTBASE_FOREACH (Base *, base, &view_layer->object_bases) {
/* object itself */
if (needPullBaseIntoGraph(base)) {
if (need_pull_base_into_graph(base)) {
/* NOTE: We consider object visible even if it's currently
* restricted by the base/restriction flags. Otherwise its drivers
* will never be evaluated.

@ -84,7 +84,7 @@ void DepsgraphRelationBuilder::build_view_layer(Scene *scene, ViewLayer *view_la
* passed to the evaluation functions. During relations builder we only
* do NULL-pointer check of the base, so it's fine to pass original one. */
LISTBASE_FOREACH (Base *, base, &view_layer->object_bases) {
if (needPullBaseIntoGraph(base)) {
if (need_pull_base_into_graph(base)) {
build_object(base, base->object);
}
}