mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Fix Vertices.chamfer radius argument
This commit is contained in:
parent
10d7be0785
commit
dc7289e539
1 changed files with 6 additions and 1 deletions
|
@ -275,7 +275,12 @@ var Common = require('../core/Common');
|
|||
* @param {number} qualityMax
|
||||
*/
|
||||
Vertices.chamfer = function(vertices, radius, quality, qualityMin, qualityMax) {
|
||||
radius = radius || [8];
|
||||
|
||||
if (typeof radius === 'number') {
|
||||
radius = [radius];
|
||||
} else {
|
||||
radius = radius || [8];
|
||||
}
|
||||
|
||||
if (!radius.length)
|
||||
radius = [radius];
|
||||
|
|
Loading…
Reference in a new issue