Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sculpt_paint.c
| Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | |||||
| # include "BKE_particle.h" | # include "BKE_particle.h" | ||||
| # include "BKE_pbvh.h" | # include "BKE_pbvh.h" | ||||
| # include "BKE_pointcache.h" | # include "BKE_pointcache.h" | ||||
| # include "BKE_object.h" | # include "BKE_object.h" | ||||
| # include "BKE_gpencil.h" | # include "BKE_gpencil.h" | ||||
| # include "DEG_depsgraph.h" | # include "DEG_depsgraph.h" | ||||
| # include "ED_gpencil.h" | |||||
| # include "ED_particle.h" | # include "ED_particle.h" | ||||
| static void rna_GPencil_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr)) | static void rna_GPencil_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| /* mark all grease pencil datablocks of the scene */ | /* mark all grease pencil datablocks of the scene */ | ||||
| FOREACH_SCENE_COLLECTION_BEGIN (scene, collection) { | ED_gpencil_tag_scene_gpencil(scene); | ||||
| FOREACH_COLLECTION_OBJECT_RECURSIVE_BEGIN (collection, ob) { | |||||
| if (ob->type == OB_GPENCIL) { | |||||
| bGPdata *gpd = (bGPdata *)ob->data; | |||||
| gpd->flag |= GP_DATA_CACHE_IS_DIRTY; | |||||
| DEG_id_tag_update(&gpd->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY); | |||||
| } | |||||
| } | |||||
| FOREACH_COLLECTION_OBJECT_RECURSIVE_END; | |||||
| } | |||||
| FOREACH_SCENE_COLLECTION_END; | |||||
| WM_main_add_notifier(NC_GPENCIL | NA_EDITED, NULL); | |||||
| } | } | ||||
| const EnumPropertyItem rna_enum_particle_edit_disconnected_hair_brush_items[] = { | const EnumPropertyItem rna_enum_particle_edit_disconnected_hair_brush_items[] = { | ||||
| {PE_BRUSH_COMB, "COMB", 0, "Comb", "Comb hairs"}, | {PE_BRUSH_COMB, "COMB", 0, "Comb", "Comb hairs"}, | ||||
| {PE_BRUSH_SMOOTH, "SMOOTH", 0, "Smooth", "Smooth hairs"}, | {PE_BRUSH_SMOOTH, "SMOOTH", 0, "Smooth", "Smooth hairs"}, | ||||
| {PE_BRUSH_LENGTH, "LENGTH", 0, "Length", "Make hairs longer or shorter"}, | {PE_BRUSH_LENGTH, "LENGTH", 0, "Length", "Make hairs longer or shorter"}, | ||||
| {PE_BRUSH_CUT, "CUT", 0, "Cut", "Cut hairs"}, | {PE_BRUSH_CUT, "CUT", 0, "Cut", "Cut hairs"}, | ||||
| {PE_BRUSH_WEIGHT, "WEIGHT", 0, "Weight", "Weight hair particles"}, | {PE_BRUSH_WEIGHT, "WEIGHT", 0, "Weight", "Weight hair particles"}, | ||||
| ▲ Show 20 Lines • Show All 1,418 Lines • Show Last 20 Lines | |||||