mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fix cl error delete skin settings jsb binding (#15047)
This commit is contained in:
committed by
GitHub
parent
f7f2780215
commit
e611594f59
@@ -190,6 +190,7 @@ legacyCC.SceneGlobals = SceneGlobals;
|
||||
this._skyboxRef = this.getSkyboxInfo();
|
||||
this._fogRef = this.getFogInfo();
|
||||
this._octreeRef = this.getOctreeInfo();
|
||||
this._skinRef = this.getSkinInfo();
|
||||
this._lightProbeRef = this.getLightProbeInfo();
|
||||
};
|
||||
|
||||
@@ -265,6 +266,18 @@ legacyCC.SceneGlobals = SceneGlobals;
|
||||
},
|
||||
});
|
||||
|
||||
Object.defineProperty(sceneGlobalsProto, 'skin', {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
get() {
|
||||
return this._skinRef;
|
||||
},
|
||||
set(v) {
|
||||
this._skinRef = v;
|
||||
this.setSkinInfo(v);
|
||||
},
|
||||
});
|
||||
|
||||
Object.defineProperty(sceneGlobalsProto, 'lightProbeInfo', {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
@@ -282,7 +295,7 @@ legacyCC.SceneGlobals = SceneGlobals;
|
||||
|
||||
// handle meta data, it is generated automatically
|
||||
|
||||
decros.patch_cc_SceneGlobals({SceneGlobals, AmbientInfo, SkyboxInfo, FogInfo, ShadowsInfo, LightProbeInfo, OctreeInfo});
|
||||
decros.patch_cc_SceneGlobals({SceneGlobals, AmbientInfo, SkyboxInfo, FogInfo, ShadowsInfo, LightProbeInfo, OctreeInfo, SkinInfo});
|
||||
|
||||
decros.patch_cc_OctreeInfo({OctreeInfo, CCInteger, Vec3, DEFAULT_WORLD_MAX_POS, DEFAULT_WORLD_MIN_POS, DEFAULT_OCTREE_DEPTH});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user