Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/linestyle.c
| Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | |||||
| void BKE_linestyle_make_local(struct Main *bmain, FreestyleLineStyle *linestyle, const bool lib_local) | void BKE_linestyle_make_local(struct Main *bmain, FreestyleLineStyle *linestyle, const bool lib_local) | ||||
| { | { | ||||
| BKE_id_make_local_generic(bmain, &linestyle->id, true, lib_local); | BKE_id_make_local_generic(bmain, &linestyle->id, true, lib_local); | ||||
| } | } | ||||
| FreestyleLineStyle *BKE_linestyle_active_from_scene(Scene *scene) | FreestyleLineStyle *BKE_linestyle_active_from_scene(Scene *scene) | ||||
| { | { | ||||
| SceneRenderLayer *actsrl = BLI_findlink(&scene->r.layers, scene->r.actlay); | SceneLayer *active_render_layer = BLI_findlink(&scene->render_layers, scene->active_layer); | ||||
| FreestyleConfig *config = &actsrl->freestyleConfig; | FreestyleConfig *config = &active_render_layer->freestyleConfig; | ||||
| FreestyleLineSet *lineset = BKE_freestyle_lineset_get_active(config); | FreestyleLineSet *lineset = BKE_freestyle_lineset_get_active(config); | ||||
| if (lineset) { | if (lineset) { | ||||
| return lineset->linestyle; | return lineset->linestyle; | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,272 Lines • Show Last 20 Lines | |||||