Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/object_mode.c
| Show First 20 Lines • Show All 1,671 Lines • ▼ Show 20 Lines | static void OBJECT_cache_populate(void *vedata, Object *ob) | ||||
| OBJECT_PassList *psl = ((OBJECT_Data *)vedata)->psl; | OBJECT_PassList *psl = ((OBJECT_Data *)vedata)->psl; | ||||
| OBJECT_StorageList *stl = ((OBJECT_Data *)vedata)->stl; | OBJECT_StorageList *stl = ((OBJECT_Data *)vedata)->stl; | ||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| Scene *scene = draw_ctx->scene; | Scene *scene = draw_ctx->scene; | ||||
| SceneLayer *sl = draw_ctx->scene_layer; | SceneLayer *sl = draw_ctx->scene_layer; | ||||
| View3D *v3d = draw_ctx->v3d; | View3D *v3d = draw_ctx->v3d; | ||||
| int theme_id = TH_UNDEFINED; | int theme_id = TH_UNDEFINED; | ||||
| if ((ob->base_flag & BASE_VISIBLED) == 0) { | |||||
| return; | |||||
| } | |||||
| //CollectionEngineSettings *ces_mode_ob = BKE_layer_collection_engine_evaluated_get(ob, COLLECTION_MODE_OBJECT, ""); | //CollectionEngineSettings *ces_mode_ob = BKE_layer_collection_engine_evaluated_get(ob, COLLECTION_MODE_OBJECT, ""); | ||||
| //bool do_wire = BKE_collection_engine_property_value_get_bool(ces_mode_ob, "show_wire"); | //bool do_wire = BKE_collection_engine_property_value_get_bool(ces_mode_ob, "show_wire"); | ||||
| bool do_outlines = ((ob->base_flag & BASE_SELECTED) != 0); | bool do_outlines = ((ob->base_flag & BASE_SELECTED) != 0); | ||||
| if (do_outlines) { | if (do_outlines) { | ||||
| Object *obedit = scene->obedit; | Object *obedit = scene->obedit; | ||||
| if (ob != obedit && !((ob == draw_ctx->obact) && (ob->mode & OB_MODE_ALL_PAINT))) { | if (ob != obedit && !((ob == draw_ctx->obact) && (ob->mode & OB_MODE_ALL_PAINT))) { | ||||
| ▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines | |||||