},
init3D: function (performanceMode) {
- if (this.scene !== undefined) {
- this.disposeHierarchy(this.scene, this.disposeNode);
+ try {
+ this.dispose3D();
+ }catch (e) {
+
}
if (performanceMode === 'disable') {
this.initAnimations();
},
+ dispose3D: function () {
+ if (this.scene === undefined) {
+ return;
+ }
+ if (this.renderer !== null) {
+ this.renderer.dispose();
+ }
+ this.disposeHierarchy(this.scene, this.disposeNode);
+
+ this.scene = null;
+ this.camera = null;
+ this.modifier = null;
+ this.textures = null;
+ this.renderer = null;
+ },
+
setBendAngle: function (a) {
this.bend.angle = a * 0.0174533;
},
FluidbookPageTransition.prototype = {
init: function () {
- if (this.fluidbook.support.transitions3dacc) {
+ if (this.fluidbook.support.transitions3dacc && this.fluidbook.datas.mobileTransitions === 'flip3d') {
this.flip3d = new Fluidbook3DFlip(this.fluidbook);
}
},