Showing the changes to libraries/entities/src/AddEntityOperator.cpp (1 of 11 files). Show all
Unified · Split
| @@ -29,7 +29,7 @@ AddEntityOperator::AddEntityOperator(EntityTree* tree, · 28 unmodified lines | |||
| 29 | _newEntityBox = _newEntity->getAACube().clamp(0.0f, 1.0f); | 29 | _newEntityBox = _newEntity->getAACube().clamp(0.0f, 1.0f); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | bool AddEntityOperator::PreRecursion(OctreeElement* element) { | 32 | bool AddEntityOperator::preRecursion(OctreeElement* element) { |
| 33 | EntityTreeElement* entityTreeElement = static_cast<EntityTreeElement*>(element); | 33 | EntityTreeElement* entityTreeElement = static_cast<EntityTreeElement*>(element); |
| 34 | 34 | ||
| 35 | // In Pre-recursion, we're generally deciding whether or not we want to recurse this | 35 | // In Pre-recursion, we're generally deciding whether or not we want to recurse this |
| @@ -59,7 +59,7 @@ bool AddEntityOperator::PreRecursion(OctreeElement* element) { · 23 unmodified lines | |||
| 59 | return keepSearching; // if we haven't yet found it, keep looking | 59 | return keepSearching; // if we haven't yet found it, keep looking |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | bool AddEntityOperator::PostRecursion(OctreeElement* element) { | 62 | bool AddEntityOperator::postRecursion(OctreeElement* element) { |
| 63 | // Post-recursion is the unwinding process. For this operation, while we | 63 | // Post-recursion is the unwinding process. For this operation, while we |
| 64 | // unwind we want to mark the path as being dirty if we changed it below. | 64 | // unwind we want to mark the path as being dirty if we changed it below. |
| 65 | // We might have two paths, one for the old entity and one for the new entity. | 65 | // We might have two paths, one for the old entity and one for the new entity. |
| @@ -73,7 +73,7 @@ bool AddEntityOperator::PostRecursion(OctreeElement* element) { · 7 unmodified lines | |||
| 73 | return keepSearching; // if we haven't yet found it, keep looking | 73 | return keepSearching; // if we haven't yet found it, keep looking |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | OctreeElement* AddEntityOperator::PossiblyCreateChildAt(OctreeElement* element, int childIndex) { | 76 | OctreeElement* AddEntityOperator::possiblyCreateChildAt(OctreeElement* element, int childIndex) { |
| 77 | // If we're getting called, it's because there was no child element at this index while recursing. | 77 | // If we're getting called, it's because there was no child element at this index while recursing. |
| 78 | // We only care if this happens while still searching for the new entity location. | 78 | // We only care if this happens while still searching for the new entity location. |
| 79 | // Check to see if | 79 | // Check to see if |