2
0
Эх сурвалжийг харах

Merge pull request #8273 from jfranc/jfranc-patch-1

Fix for geometry text pnltri and earcut examples
Mr.doob 9 жил өмнө
parent
commit
edab14ae2f

+ 1 - 1
examples/webgl_geometry_text_earcut.html

@@ -54,7 +54,7 @@
 			    }
 			}
 
-			THREE.Shape.Utils.triangulateShape = function ( contour, holes ) {
+			THREE.ShapeUtils.triangulateShape = function ( contour, holes ) {
 			    var vertices = [];
 
 			    addContour( vertices, contour );

+ 1 - 1
examples/webgl_geometry_text_pnltri.html

@@ -47,7 +47,7 @@
 		<!-- replace built-in triangulation with PnlTri.js -->
 		<script src="js/libs/pnltri.min.js"></script>
 		<script>
-			THREE.Shape.Utils.triangulateShape = ( function () {
+			THREE.ShapeUtils.triangulateShape = ( function () {
 				var pnlTriangulator = new PNLTRI.Triangulator();
 				return function triangulateShape( contour, holes ) {
 					// console.log("new Triangulation: PnlTri.js " + PNLTRI.REVISION );