57 v3d->
camera = scene->camera;
61 if (v3d->
camera ==
nullptr) {
62 v3d->
camera = scene->camera;
71 if (v3d->
camera ==
nullptr) {
76 if (v3d->
camera ==
nullptr) {
82 scene->camera = v3d->
camera;
123 ot->
idname =
"VIEW3D_OT_view_camera";
Scene * CTX_data_scene(const bContext *C)
ViewLayer * CTX_data_view_layer(const bContext *C)
void BKE_view_layer_synced_ensure(const Scene *scene, ViewLayer *view_layer)
Object * BKE_view_layer_camera_find(const Scene *scene, ViewLayer *view_layer)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
void DEG_id_tag_update(ID *id, unsigned int flags)
#define RV3D_LOCK_FLAGS(rv3d)
@ RV3D_LOCK_ANY_TRANSFORM
bool ED_view3d_context_user_region(bContext *C, View3D **r_v3d, ARegion **r_region)
void ED_view3d_lastview_store(RegionView3D *rv3d)
bool ED_operator_rv3d_user_region_poll(bContext *C)
Read Guarded memory(de)allocation.
struct wmTimer * smooth_timer
bool(* poll)(bContext *C) ATTR_WARN_UNUSED_RESULT
int(* exec)(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void axis_set_view(bContext *C, View3D *v3d, ARegion *region, const float quat_[4], char view, char view_axis_roll, int perspo, const float *align_to_quat, const int smooth_viewtx)
void ED_view3d_smooth_view(bContext *C, View3D *v3d, ARegion *region, int smooth_viewtx, const V3D_SmoothParams *sview)
void ED_view3d_smooth_view_force_finish(bContext *C, View3D *v3d, ARegion *region)
static int view_camera_exec(bContext *C, wmOperator *op)
void VIEW3D_OT_view_camera(wmOperatorType *ot)
int WM_operator_smooth_viewtx_get(const wmOperator *op)