diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-06-17 04:31:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-06-17 04:32:30 +0300 |
commit | 03f67fd5b0e6c68632bfaa21efa61343f721f994 (patch) | |
tree | 6892d000560b36c4298a79928308a5b1e6103e9c /source/blender | |
parent | 608cabe2a1c0e81aaf33fa193bfb638e766498df (diff) |
Cleanup: unused code
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/include/ED_manipulator_library.h | 5 | ||||
-rw-r--r-- | source/blender/editors/include/ED_transform.h | 2 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_manipulator.c | 41 |
3 files changed, 0 insertions, 48 deletions
diff --git a/source/blender/editors/include/ED_manipulator_library.h b/source/blender/editors/include/ED_manipulator_library.h index 924ba7bf792..7d92f4311d4 100644 --- a/source/blender/editors/include/ED_manipulator_library.h +++ b/source/blender/editors/include/ED_manipulator_library.h @@ -132,11 +132,6 @@ void ED_manipulator_grab3d_set_style(struct wmManipulator *mpr, int style); void ED_manipulator_grab3d_set_up_vector( struct wmManipulator *mpr, const float direction[3]); -/* -------------------------------------------------------------------- */ -/* Facemap Manipulator */ - -struct bFaceMap *ED_manipulator_facemap_get_fmap(struct wmManipulator *mpr); - /* -------------------------------------------------------------------- */ /* Primitive Manipulator */ diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index da5a0cdcf2b..483caf7c475 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -159,8 +159,6 @@ void Transform_Properties(struct wmOperatorType *ot, int flags); void TRANSFORM_WGT_manipulator(struct wmManipulatorGroupType *wgt); -void TRANSFORM_WGT_object(struct wmManipulatorGroupType *wgt); - bool ED_widgetgroup_manipulator2d_poll(const struct bContext *C, struct wmManipulatorGroupType *wgt); void ED_widgetgroup_manipulator2d_setup(const struct bContext *C, struct wmManipulatorGroup *mgroup); void ED_widgetgroup_manipulator2d_refresh(const struct bContext *C, struct wmManipulatorGroup *mgroup); diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index 6b6e68987f9..13053e3290d 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -1375,44 +1375,3 @@ void TRANSFORM_WGT_manipulator(wmManipulatorGroupType *wgt) wgt->refresh = WIDGETGROUP_manipulator_refresh; wgt->draw_prepare = WIDGETGROUP_manipulator_draw_prepare; } - - -/* -------------------------------------------------------------------- */ -/* Custom Object Manipulator (unfinished - unsure if this will stay) */ -#if 0 -static void WIDGETGROUP_object_manipulator_init(const bContext *C, wmManipulatorGroup *mgroup) -{ - Object *ob = ED_object_active_context((bContext *)C); - - if (ob->mgroup == NULL) { - ob->mgroup = mgroup; - } - - WIDGETGROUP_manipulator_setup(C, mgroup); -} - -static bool WIDGETGROUP_object_manipulator_poll(const bContext *C, wmManipulatorGroupType *wgt) -{ - Object *ob = ED_object_active_context((bContext *)C); - - if (ED_operator_object_active((bContext *)C)) { - if (STREQ(wgt->idname, ob->id.name)) { - return true; - } - } - return false; -} - -/* XXX should this really be in transform_manipulator.c? */ -void TRANSFORM_WGT_object(wmManipulatorGroupType *wgt) -{ - wgt->name = "Object Widgets"; - - wgt->poll = WIDGETGROUP_object_manipulator_poll; - wgt->setup = WIDGETGROUP_object_manipulator_init; - wgt->refresh = WIDGETGROUP_manipulator_refresh; - wgt->draw_prepare = WIDGETGROUP_manipulator_draw_prepare; - - wgt->flag |= (WM_MANIPULATORGROUPTYPE_3D | WM_MANIPULATORGROUPTYPE_SCALE_3D); -} -#endif |