mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
pop first element if there is only one shape
This commit is contained in:
@@ -1001,6 +1001,7 @@ Phaser.Physics.Body.prototype = {
|
||||
{
|
||||
var temp = [];
|
||||
|
||||
data = data.pop()
|
||||
// We've a list of numbers
|
||||
for (var i = 0, len = data.shape.length; i < len; i += 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user