aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/GLWorld.js
diff options
context:
space:
mode:
authorhwc4872012-03-05 04:51:31 -0800
committerhwc4872012-03-05 04:51:31 -0800
commitcad4d6cb3f667f6174ec05cecead675b244285b9 (patch)
treefc5c9688069043f02fb9781a60c7984dba184f83 /js/helper-classes/RDGE/GLWorld.js
parentd044b6d9755d8ca686501fc3dd5644180e2ffbf0 (diff)
downloadninja-cad4d6cb3f667f6174ec05cecead675b244285b9.tar.gz
Added more materials/canvas2D drawing to runtime.
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