Corrected previewer bug
This commit is contained in:
		
							parent
							
								
									47a9925f3c
								
							
						
					
					
						commit
						748656504b
					
				
							
								
								
									
										3
									
								
								js/l3d/apps/prototype/interactive/main.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								js/l3d/apps/prototype/interactive/main.js
									
									
									
									
										vendored
									
									
								
							| @ -111,8 +111,7 @@ function initCanvases() { | ||||
| function initModels() { | ||||
| 
 | ||||
|     // Init recommendations
 | ||||
|     // recommendations = initMainScene(camera1, scene, coins, clickableObjects);
 | ||||
|     recommendations = L3D.initWhomp(camera1, scene, coins, clickableObjects); | ||||
|     recommendations = initMainScene(camera1, scene, coins, clickableObjects); | ||||
| 
 | ||||
|     // init clickable objects
 | ||||
|     var i; | ||||
|  | ||||
| @ -142,6 +142,7 @@ L3D.Previewer.prototype.render = function(container_width, container_height) { | ||||
|  */ | ||||
| L3D.Previewer.prototype.clear = function() { | ||||
|     if (this.clearNeeded) { | ||||
|         console.log("Clear"); | ||||
|         this.domElement.width = this.domElement.width; | ||||
|         this.clearNeeded = false; | ||||
|     } | ||||
| @ -180,8 +181,12 @@ L3D.Previewer.prototype.setCamera = function(camera) { | ||||
|  * @param {Number} y y coordinate of the mouse | ||||
|  */ | ||||
| L3D.Previewer.prototype.setPosition = function(x, y) { | ||||
| 
 | ||||
|     if (!this.drawn) { | ||||
|         this.mouse.x = x; | ||||
|         this.mouse.y = y; | ||||
|     } | ||||
| 
 | ||||
| }; | ||||
| 
 | ||||
| /** | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user