Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_query_iter.cc
| Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
| static bool deg_object_hide_original(eEvaluationMode eval_mode, Object *ob, DupliObject *dob) | static bool deg_object_hide_original(eEvaluationMode eval_mode, Object *ob, DupliObject *dob) | ||||
| { | { | ||||
| /* Automatic hiding if this object is being instanced on verts/faces/frames | /* Automatic hiding if this object is being instanced on verts/faces/frames | ||||
| * by its parent. Ideally this should not be needed, but due to the wrong | * by its parent. Ideally this should not be needed, but due to the wrong | ||||
| * dependency direction in the data design there is no way to keep the object | * dependency direction in the data design there is no way to keep the object | ||||
| * visible otherwise. The better solution eventually would be for objects | * visible otherwise. The better solution eventually would be for objects | ||||
| * to specify which object they instance, instead of through parenting. */ | * to specify which object they instance, instead of through parenting. */ | ||||
| if (eval_mode == DAG_EVAL_RENDER || dob) { | if (eval_mode == DAG_EVAL_RENDER || dob) { | ||||
| const int hide_original_types = OB_DUPLIFRAMES | OB_DUPLIVERTS | OB_DUPLIFACES; | const int hide_original_types = OB_DUPLIVERTS | OB_DUPLIFACES; | ||||
| if (!dob || !(dob->type & hide_original_types)) { | if (!dob || !(dob->type & hide_original_types)) { | ||||
| if (ob->parent && (ob->parent->transflag & hide_original_types)) { | if (ob->parent && (ob->parent->transflag & hide_original_types)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines | |||||