Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder.cc
| Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | bool DepsgraphBuilder::need_pull_base_into_graph(Base *base) | ||||
| AnimatedPropertyID property_id; | AnimatedPropertyID property_id; | ||||
| if (graph_->mode == DAG_EVAL_VIEWPORT) { | if (graph_->mode == DAG_EVAL_VIEWPORT) { | ||||
| property_id = AnimatedPropertyID(&object->id, &RNA_Object, "hide_viewport"); | property_id = AnimatedPropertyID(&object->id, &RNA_Object, "hide_viewport"); | ||||
| } | } | ||||
| else if (graph_->mode == DAG_EVAL_RENDER) { | else if (graph_->mode == DAG_EVAL_RENDER) { | ||||
| property_id = AnimatedPropertyID(&object->id, &RNA_Object, "hide_render"); | property_id = AnimatedPropertyID(&object->id, &RNA_Object, "hide_render"); | ||||
| } | } | ||||
| else { | else { | ||||
| BLI_assert(!"Unknown evaluation mode."); | BLI_assert_msg(0, "Unknown evaluation mode."); | ||||
| return false; | return false; | ||||
| } | } | ||||
| return cache_->isPropertyAnimated(&object->id, property_id); | return cache_->isPropertyAnimated(&object->id, property_id); | ||||
| } | } | ||||
| bool DepsgraphBuilder::check_pchan_has_bbone(Object *object, const bPoseChannel *pchan) | bool DepsgraphBuilder::check_pchan_has_bbone(Object *object, const bPoseChannel *pchan) | ||||
| { | { | ||||
| BLI_assert(object->type == OB_ARMATURE); | BLI_assert(object->type == OB_ARMATURE); | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||