Skip to content
Permalink
Browse files

feat(left-header): fix clone gameObject has script component

update wonder.js version(4c0ed546cc46af27fd647b33d664af88af369e4f)
  • Loading branch information...
yyc-git committed Apr 7, 2019
1 parent 5e8e4fc commit 814aca08a2ebc8bc8e8747dd27547fb7b79f6a8a
@@ -74,7 +74,7 @@
"wonder-commonlib": "^0.2.31",
"wonder-hotkey": "^0.0.1",
"wonder-log": "^0.2.11",
"wonder.js": "1.1.0-alpha.1.4"
"wonder.js": "1.1.0-alpha.1.5"
},
"resolutions": {
"wonder-log": "^0.2.11",
@@ -19,5 +19,4 @@ let filterValid = (func, map) =>
|> Js.Array.filter(value =>
WonderCommonlib.NullService.isInMap(value)
&& func(. value |> WonderCommonlib.SparseMapType.nullableToNotNullable)
);
/* |> WonderCommonlib.SparseMapType.arrayNullableToArrayNotNullable; */
);
@@ -25,6 +25,10 @@ let buildAllComponentArray = () => [|
componentType: Light,
hasComponentFunc: LightEngineService.hasLightComponent,
},
{
componentType: Script,
hasComponentFunc: GameObjectComponentEngineService.hasScriptComponent,
},
|];

let _setGameObjectComponentInComponentTypeMap =
@@ -57,7 +61,8 @@ let setGameObjectArrComponentTypeMap =
);

_iterateGameObject(
engineState |> HierarchyGameObjectEngineService.getChildren(gameObject),
engineState
|> HierarchyGameObjectEngineService.getChildren(gameObject),
engineState,
editorState,
);

0 comments on commit 814aca0

Please sign in to comment.
You can’t perform that action at this time.