Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_paint.c
| Show First 20 Lines • Show All 422 Lines • ▼ Show 20 Lines | if (gpd->runtime.sbuffer_sflag & GP_STROKE_3DSPACE) { | ||||
| int mval_i[2]; | int mval_i[2]; | ||||
| round_v2i_v2fl(mval_i, mval); | round_v2i_v2fl(mval_i, mval); | ||||
| if (gpencil_project_check(p) && (ED_view3d_autodist_simple(p->ar, mval_i, out, 0, depth))) { | if (gpencil_project_check(p) && (ED_view3d_autodist_simple(p->ar, mval_i, out, 0, depth))) { | ||||
| /* projecting onto 3D-Geometry | /* projecting onto 3D-Geometry | ||||
| * - nothing more needs to be done here, since view_autodist_simple() has already done it | * - nothing more needs to be done here, since view_autodist_simple() has already done it | ||||
| */ | */ | ||||
| /* verify valid zdepth, if it's wrong, the default drawing mode is used | /* verify valid zdepth, if it's wrong, the default drawing mode is used | ||||
| * and the function doesn't return now */ | * and the function doesn't return now */ | ||||
| if ((depth == NULL) || (*depth <= 1.0f)) { | if ((depth == NULL) || (*depth <= 1.0f)) { | ||||
| return; | return; | ||||
| } | } | ||||
| } | } | ||||
| float mval_prj[2]; | float mval_prj[2]; | ||||
| float rvec[3], dvec[3]; | float rvec[3], dvec[3]; | ||||
| float mval_f[2]; | float mval_f[2]; | ||||
| ▲ Show 20 Lines • Show All 3,418 Lines • Show Last 20 Lines | |||||