diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-03-27 16:52:13 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-03-27 16:53:15 +0300 |
commit | 27b73f0c5b8ba23e069abf107716929f106969b8 (patch) | |
tree | 204612cb979a12365892a31ae3c02c6047c4725c /source/blender/editors/gpencil/gpencil_utils.c | |
parent | c87e467e390ab97ed156ee0aa5cf22eb26ae78a7 (diff) |
GPencil: Remove legacy `ED_gpencil_draw_view3d` code.
Differential Revision: https://developer.blender.org/D4598
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_utils.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_utils.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c index d8772c5f1e2..6601bfe9d2f 100644 --- a/source/blender/editors/gpencil/gpencil_utils.c +++ b/source/blender/editors/gpencil/gpencil_utils.c @@ -260,24 +260,6 @@ bool ED_gpencil_data_owner_is_annotation(PointerRNA *owner_ptr) return ((owner_ptr) && (owner_ptr->type != &RNA_Object)); } -/* -------------------------------------------------------- */ - -// XXX: this should be removed... We really shouldn't duplicate logic like this! -bGPdata *ED_gpencil_data_get_active_v3d(ViewLayer *view_layer, View3D *v3d) -{ - Base *base = view_layer->basact; - bGPdata *gpd = NULL; - - /* We have to make sure active object is actually visible and selected, else we must use default scene gpd, - * to be consistent with ED_gpencil_data_get_active's behavior. - */ - if (base && BASE_SELECTED(v3d, base)) { - if (base->object->type == OB_GPENCIL) - gpd = base->object->data; - } - return gpd ? gpd : NULL; -} - /* ******************************************************** */ /* Keyframe Indicator Checks */ |