aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/GLWorld.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/RDGE/GLWorld.js')
-rwxr-xr-xjs/helper-classes/RDGE/GLWorld.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/GLWorld.js b/js/helper-classes/RDGE/GLWorld.js
index d9e91404..3a779b92 100755
--- a/js/helper-classes/RDGE/GLWorld.js
+++ b/js/helper-classes/RDGE/GLWorld.js
@@ -840,7 +840,7 @@ GLWorld.prototype.export = function( exportForPublish )
840 if (!exportForPublish) exportForPublish = false; 840 if (!exportForPublish) exportForPublish = false;
841 exportStr += "publish: " + exportForPublish + "\n"; 841 exportStr += "publish: " + exportForPublish + "\n";
842 842
843 if (exportForPublish) 843 if (exportForPublish && this._useWebGL)
844 { 844 {
845 exportStr += "scenedata: " + this.myScene.exportJSON() + "endscene\n"; 845 exportStr += "scenedata: " + this.myScene.exportJSON() + "endscene\n";
846 846
@@ -930,6 +930,9 @@ GLWorld.prototype.import = function( importStr )
930 930
931 // import the objects 931 // import the objects
932 this.importObjects( importStr, this._rootNode ); 932 this.importObjects( importStr, this._rootNode );
933
934 // render using canvas 2D
935 this.render();
933 } 936 }
934} 937}
935 938