Following coding standard

This commit is contained in:
AlessandroSigna 2016-01-07 11:08:11 -08:00
parent 18390c87da
commit eaa67a41dd

View file

@ -173,7 +173,7 @@ void OverlayPanel::applyTransformTo(Transform& transform, bool force) {
EntityTreePointer entityTree = DependencyManager::get<EntityScriptingInterface>()->getEntityTree();
entityTree->withReadLock([&] {
EntityItemPointer foundEntity = entityTree->findEntityByID(_anchorPositionBindEntity);
if (foundEntity != NULL) {
if (foundEntity) {
transform.setTranslation(foundEntity->getPosition());
}
});
@ -188,7 +188,7 @@ void OverlayPanel::applyTransformTo(Transform& transform, bool force) {
EntityTreePointer entityTree = DependencyManager::get<EntityScriptingInterface>()->getEntityTree();
entityTree->withReadLock([&] {
EntityItemPointer foundEntity = entityTree->findEntityByID(_anchorRotationBindEntity);
if (foundEntity != NULL) {
if (foundEntity) {
transform.setRotation(foundEntity->getRotation());
}
});