Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_edit.c
| Context not available. | |||||
| /* avoid precision loss over time */ | /* avoid precision loss over time */ | ||||
| normalize_qt(vod->curr.viewquat); | normalize_qt(vod->curr.viewquat); | ||||
| /* use a working copy so view rotation locking doesnt overwrite the locked | /* use a working copy so view rotation locking doesn't overwrite the locked | ||||
| * rotation back into the view we calculate with */ | * rotation back into the view we calculate with */ | ||||
| copy_qt_qt(rv3d->viewquat, vod->curr.viewquat); | copy_qt_qt(rv3d->viewquat, vod->curr.viewquat); | ||||
| Context not available. | |||||
| /** | /** | ||||
| * Zoom and pan in the same function since sometimes zoom is interpreted as dolly (pan forward). | * Zoom and pan in the same function since sometimes zoom is interpreted as dolly (pan forward). | ||||
| * | * | ||||
| * \param has_zoom zoom, otherwise dolly, often `!rv3d->is_persp` since it doesnt make sense to dolly in ortho. | * \param has_zoom zoom, otherwise dolly, often `!rv3d->is_persp` since it doesn't make sense to dolly in ortho. | ||||
| */ | */ | ||||
| static void view3d_ndof_pan_zoom( | static void view3d_ndof_pan_zoom( | ||||
| const struct wmNDOFMotionData *ndof, ScrArea *sa, ARegion *ar, | const struct wmNDOFMotionData *ndof, ScrArea *sa, ARegion *ar, | ||||
| Context not available. | |||||
| if (v3d->camera == NULL) | if (v3d->camera == NULL) | ||||
| v3d->camera = BKE_view_layer_camera_find(view_layer); | v3d->camera = BKE_view_layer_camera_find(view_layer); | ||||
| /* couldnt find any useful camera, bail out */ | /* couldn't find any useful camera, bail out */ | ||||
| if (v3d->camera == NULL) | if (v3d->camera == NULL) | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| Context not available. | |||||