Skip to content

Commit 3bb6099

Browse files
committed
Fixed key issue
1 parent 5461471 commit 3bb6099

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/scene/GetPhysicsPlugins.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var GetFastValue = require('../utils/object/GetFastValue');
2+
var UppercaseFirst = require('../utils/string/UppercaseFirst');
23

34
var GetPhysicsPlugins = function (sys)
45
{
@@ -16,14 +17,14 @@ var GetPhysicsPlugins = function (sys)
1617

1718
if (defaultSystem)
1819
{
19-
output.push(defaultSystem + 'Physics');
20+
output.push(UppercaseFirst(defaultSystem + 'Physics'));
2021
}
2122

2223
if (sceneSystems)
2324
{
2425
for (var key in sceneSystems)
2526
{
26-
key = key.concat('Physics');
27+
key = UppercaseFirst(key.concat('Physics'));
2728

2829
if (output.indexOf(key) === -1)
2930
{

0 commit comments

Comments
 (0)