fixed 'PointCloudOctree.toTreeNode' function global variable issue

This commit is contained in:
Ko Nagase 2016-01-18 10:50:12 +09:00
parent 58ffe7fc6e
commit 593797247e
3 changed files with 9 additions and 9 deletions

View File

@ -5420,11 +5420,11 @@ Potree.PointCloudOctree.prototype.getName = function(){
Potree.PointCloudOctree.prototype.toTreeNode = function(geometryNode, parent){
var node = new Potree.PointCloudOctreeNode();
var sceneNode = new THREE.PointCloud(geometryNode.geometry, pointcloud.material);
var sceneNode = new THREE.PointCloud(geometryNode.geometry, this.material);
node.geometryNode = geometryNode;
node.sceneNode = sceneNode;
node.pointcloud = pointcloud;
node.pointcloud = this;
node.children = {};
for(var key in geometryNode.children){
node.children[key] = geometryNode.children[key];

File diff suppressed because one or more lines are too long

View File

@ -373,11 +373,11 @@ Potree.PointCloudOctree.prototype.getName = function(){
Potree.PointCloudOctree.prototype.toTreeNode = function(geometryNode, parent){
var node = new Potree.PointCloudOctreeNode();
var sceneNode = new THREE.PointCloud(geometryNode.geometry, pointcloud.material);
var sceneNode = new THREE.PointCloud(geometryNode.geometry, this.material);
node.geometryNode = geometryNode;
node.sceneNode = sceneNode;
node.pointcloud = pointcloud;
node.pointcloud = this;
node.children = {};
for(var key in geometryNode.children){
node.children[key] = geometryNode.children[key];