Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
493cf89f
Commit
493cf89f
authored
6 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
SL-6306 Viewer freeze and crash on octree
parent
f46969fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llmath/lloctree.h
+14
-2
14 additions, 2 deletions
indra/llmath/lloctree.h
with
14 additions
and
2 deletions
indra/llmath/lloctree.h
+
14
−
2
View file @
493cf89f
...
@@ -401,7 +401,7 @@ class LLOctreeNode : public LLTreeNode<T>
...
@@ -401,7 +401,7 @@ class LLOctreeNode : public LLTreeNode<T>
child
->
insert
(
data
);
child
->
insert
(
data
);
}
}
}
}
else
else
if
(
parent
)
{
{
//it's not in here, give it to the root
//it's not in here, give it to the root
OCT_ERRS
<<
"Octree insertion failed, starting over from root!"
<<
LL_ENDL
;
OCT_ERRS
<<
"Octree insertion failed, starting over from root!"
<<
LL_ENDL
;
...
@@ -416,6 +416,13 @@ class LLOctreeNode : public LLTreeNode<T>
...
@@ -416,6 +416,13 @@ class LLOctreeNode : public LLTreeNode<T>
node
->
insert
(
data
);
node
->
insert
(
data
);
}
}
else
{
// It's not in here, and we are root.
// LLOctreeRoot::insert() should have expanded
// root by now, something is wrong
OCT_ERRS
<<
"Octree insertion failed! Root expansion failed."
<<
LL_ENDL
;
}
return
false
;
return
false
;
}
}
...
@@ -763,10 +770,15 @@ class LLOctreeRoot : public LLOctreeNode<T>
...
@@ -763,10 +770,15 @@ class LLOctreeRoot : public LLOctreeNode<T>
{
{
LLOctreeNode
<
T
>::
insert
(
data
);
LLOctreeNode
<
T
>::
insert
(
data
);
}
}
else
else
if
(
node
->
isInside
(
data
->
getPositionGroup
()))
{
{
node
->
insert
(
data
);
node
->
insert
(
data
);
}
}
else
{
// calling node->insert(data) will return us to root
OCT_ERRS
<<
"Failed to insert data at child node"
<<
LL_ENDL
;
}
}
}
else
if
(
this
->
getChildCount
()
==
0
)
else
if
(
this
->
getChildCount
()
==
0
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment