Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_edit.c
| Context not available. | |||||
| #include "BKE_camera.h" | #include "BKE_camera.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_font.h" | #include "BKE_font.h" | ||||
| #include "BKE_gpencil.h" | |||||
| #include "BKE_layer.h" | #include "BKE_layer.h" | ||||
| #include "BKE_library.h" | #include "BKE_library.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| Context not available. | |||||
| #include "ED_screen.h" | #include "ED_screen.h" | ||||
| #include "ED_transform.h" | #include "ED_transform.h" | ||||
| #include "ED_mesh.h" | #include "ED_mesh.h" | ||||
| #include "ED_gpencil.h" | |||||
| #include "ED_view3d.h" | #include "ED_view3d.h" | ||||
| #include "ED_transform_snap_object_context.h" | #include "ED_transform_snap_object_context.h" | ||||
| Context not available. | |||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_depsgraph(C); | ||||
| ViewLayer *view_layer_eval = DEG_get_evaluated_view_layer(depsgraph); | ViewLayer *view_layer_eval = DEG_get_evaluated_view_layer(depsgraph); | ||||
| bGPdata *gpd = CTX_data_gpencil_data(C); | bGPdata *gpd = CTX_data_gpencil_data(C); | ||||
| const bool is_gp_edit = ((gpd) && (gpd->flag & GP_DATA_STROKE_EDITMODE)); | const bool is_gp_edit = GPENCIL_ANY_MODE(gpd); | ||||
| const bool is_face_map = ((is_gp_edit == false) && ar->manipulator_map && | const bool is_face_map = ((is_gp_edit == false) && ar->manipulator_map && | ||||
| WM_manipulatormap_is_any_selected(ar->manipulator_map)); | WM_manipulatormap_is_any_selected(ar->manipulator_map)); | ||||
| Object *ob_eval = OBACT(view_layer_eval); | Object *ob_eval = OBACT(view_layer_eval); | ||||
| Context not available. | |||||
| { | { | ||||
| /* we're only interested in selected points here... */ | /* we're only interested in selected points here... */ | ||||
| if ((gps->flag & GP_STROKE_SELECT) && (gps->flag & GP_STROKE_3DSPACE)) { | if ((gps->flag & GP_STROKE_SELECT) && (gps->flag & GP_STROKE_3DSPACE)) { | ||||
| if (ED_gpencil_stroke_minmax(gps, true, min, max)) { | ok |= BKE_gpencil_stroke_minmax(gps, true, min, max); | ||||
| ok = true; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| CTX_DATA_END; | CTX_DATA_END; | ||||
| Context not available. | |||||