62 if (v3d->
camera ==
nullptr) {
72 if (v3d->
camera ==
nullptr) {
77 if (v3d->
camera ==
nullptr) {
122 ot->
name =
"View Camera";
124 ot->
idname =
"VIEW3D_OT_view_camera";
#define RV3D_LOCK_FLAGS(rv3d)
static wmOperatorStatus view_camera_exec(bContext *C, wmOperator *op)
bool ED_view3d_context_user_region(bContext *C, View3D **r_v3d, ARegion **r_region)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
bool ED_operator_rv3d_user_region_poll(bContext *C)
int WM_operator_smooth_viewtx_get(const wmOperator *op)
@ RV3D_LOCK_ANY_TRANSFORM
void VIEW3D_OT_view_camera(wmOperatorType *ot)
ViewLayer * CTX_data_view_layer(const bContext *C)
Object * BKE_view_layer_camera_find(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
void axis_set_view(bContext *C, View3D *v3d, ARegion *region, const float quat_[4], eRegionView3D_View view, eRegionView3D_ViewAxisRoll view_axis_roll, eRegionView3D_Persp perspo, const float *align_to_quat, const int smooth_viewtx)
void DEG_id_tag_update(ID *id, unsigned int flags)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
Main * CTX_data_main(const bContext *C)
void ED_view3d_smooth_view_force_finish(bContext *C, View3D *v3d, ARegion *region)
void ED_view3d_lastview_store(RegionView3D *rv3d)
Scene * CTX_data_scene(const bContext *C)
void ED_view3d_smooth_view(bContext *C, View3D *v3d, ARegion *region, int smooth_viewtx, const V3D_SmoothParams *sview)
eRegionView3D_ViewAxisRoll lview_axis_roll
eRegionView3D_Persp lpersp
struct wmTimer * smooth_timer
eRegionView3D_Persp persp
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT