Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil.c
| Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | |||||
| # include "WM_api.h" | # include "WM_api.h" | ||||
| # include "BKE_action.h" | # include "BKE_action.h" | ||||
| # include "BKE_animsys.h" | # include "BKE_animsys.h" | ||||
| # include "BKE_deform.h" | # include "BKE_deform.h" | ||||
| # include "BKE_gpencil.h" | # include "BKE_gpencil.h" | ||||
| # include "BKE_gpencil_curve.h" | # include "BKE_gpencil_curve.h" | ||||
| # include "BKE_gpencil_geom.h" | # include "BKE_gpencil_geom.h" | ||||
| # include "BKE_gpencil_update_cache.h" | |||||
| # include "BKE_icons.h" | # include "BKE_icons.h" | ||||
| # include "DEG_depsgraph.h" | # include "DEG_depsgraph.h" | ||||
| # include "DEG_depsgraph_build.h" | # include "DEG_depsgraph_build.h" | ||||
| static void rna_GPencil_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | static void rna_GPencil_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | ||||
| { | { | ||||
| #if 0 | |||||
| /* In case a property on a layer changed, tag it with a light update. */ | |||||
| if (ptr->type == &RNA_GPencilLayer) { | |||||
| BKE_gpencil_tag_light_update((bGPdata *)(ptr->owner_id), (bGPDlayer *)(ptr->data), NULL, NULL); | |||||
| } | |||||
| #endif | |||||
| DEG_id_tag_update(ptr->owner_id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(ptr->owner_id, ID_RECALC_GEOMETRY); | ||||
| WM_main_add_notifier(NC_GPENCIL | NA_EDITED, NULL); | WM_main_add_notifier(NC_GPENCIL | NA_EDITED, NULL); | ||||
| } | } | ||||
| static void rna_GpencilLayerMatrix_update(Main *bmain, Scene *scene, PointerRNA *ptr) | static void rna_GpencilLayerMatrix_update(Main *bmain, Scene *scene, PointerRNA *ptr) | ||||
| { | { | ||||
| bGPDlayer *gpl = (bGPDlayer *)ptr->data; | bGPDlayer *gpl = (bGPDlayer *)ptr->data; | ||||
| ▲ Show 20 Lines • Show All 2,552 Lines • Show Last 20 Lines | |||||