app: use matrix to determine if doing perspective transform in preview

In GimpCanvasTransformPreview, use the transform matrix to
determine if we're doing a perspective transform, rather than
relying on a separate property, so that we don't use the slow
perspective path unnecessarily.

Consequently, remove the does_perspective member of
GimpTransformTool, since it's no longer used.
This commit is contained in:
Ell
2017-11-14 11:19:42 -05:00
parent 788e04bddb
commit 2e9ab59d19
9 changed files with 10 additions and 40 deletions

View File

@ -55,8 +55,7 @@ GimpCanvasItem * gimp_canvas_transform_preview_new (GimpDisplayShell *shel
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gboolean perspective);
gdouble y2);
#endif /* __GIMP_CANVAS_TRANSFORM_PREVIEW_H__ */