From 043eaa96c2a45b306225d491a1af75ade211c4d6 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Mon, 9 Jan 2017 08:49:31 -0500 Subject: [PATCH] show warning when calling modelX/Y/Z in P2D, fixes #4813 --- core/src/processing/opengl/PGraphics2D.java | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/core/src/processing/opengl/PGraphics2D.java b/core/src/processing/opengl/PGraphics2D.java index f3860e20d..8fbdd5eff 100644 --- a/core/src/processing/opengl/PGraphics2D.java +++ b/core/src/processing/opengl/PGraphics2D.java @@ -251,6 +251,31 @@ public class PGraphics2D extends PGraphicsOpenGL { } + ////////////////////////////////////////////////////////////// + + // SCREEN TRANSFORMS + + + @Override + public float modelX(float x, float y, float z) { + showDepthWarning("modelX"); + return 0; + } + + + @Override + public float modelY(float x, float y, float z) { + showDepthWarning("modelY"); + return 0; + } + + + @Override + public float modelZ(float x, float y, float z) { + showDepthWarning("modelZ"); + return 0; + } + //////////////////////////////////////////////////////////////