Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_view3d / view3d_fly.c
index b3ed8e34755cacc37d9f347fe5e2c42f02015bdd..5e7eddb1c221642d72c952b1ac3037111a05da26 100644 (file)
@@ -362,7 +362,7 @@ static bool initFlyInfo(bContext *C, FlyInfo *fly, wmOperator *op, const wmEvent
                fly->rv3d->persp = RV3D_PERSP;
        }
 
-       if (fly->rv3d->persp == RV3D_CAMOB && ID_IS_LINKED_DATABLOCK(fly->v3d->camera)) {
+       if (fly->rv3d->persp == RV3D_CAMOB && ID_IS_LINKED(fly->v3d->camera)) {
                BKE_report(op->reports, RPT_ERROR, "Cannot fly a camera from an external library");
                return false;
        }