fix cl error delete skin settings jsb binding (#15047)

This commit is contained in:
troublemaker52025
2023-05-12 19:45:46 +08:00
committed by GitHub
parent f7f2780215
commit e611594f59
+14 -1
View File
@@ -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});