Merge pull request #5087 from Atlante45/debug

Reduce debug on domain connection
This commit is contained in:
Brad Hefta-Gaub 2015-06-09 07:54:21 -07:00
commit 759a4a323b
4 changed files with 7 additions and 7 deletions

View file

@ -191,8 +191,8 @@ void RenderableWebEntityItem::render(RenderArgs* args) {
} }
void RenderableWebEntityItem::setSourceUrl(const QString& value) { void RenderableWebEntityItem::setSourceUrl(const QString& value) {
qDebug() << "Setting web entity source URL to " << value;
if (_sourceUrl != value) { if (_sourceUrl != value) {
qDebug() << "Setting web entity source URL to " << value;
_sourceUrl = value; _sourceUrl = value;
if (_webSurface) { if (_webSurface) {
AbstractViewStateInterface::instance()->postLambdaEvent([this] { AbstractViewStateInterface::instance()->postLambdaEvent([this] {

View file

@ -86,6 +86,7 @@ bool LineEntityItem::setProperties(const EntityItemProperties& properties) {
void LineEntityItem::setLinePoints(const QVector<glm::vec3>& points) { void LineEntityItem::setLinePoints(const QVector<glm::vec3>& points) {
QVector<glm::vec3> sanitizedPoints; QVector<glm::vec3> sanitizedPoints;
int invalidPoints = 0;
for (int i = 0; i < points.size(); i++) { for (int i = 0; i < points.size(); i++) {
glm::vec3 point = points.at(i); glm::vec3 point = points.at(i);
// Make sure all of our points are valid numbers. // Make sure all of our points are valid numbers.
@ -93,9 +94,12 @@ void LineEntityItem::setLinePoints(const QVector<glm::vec3>& points) {
if (point.x > 0 && point.y > 0 && point.z > 0){ if (point.x > 0 && point.y > 0 && point.z > 0){
sanitizedPoints << point; sanitizedPoints << point;
} else { } else {
qDebug() << "INVALID POINT"; ++invalidPoints;
} }
} }
if (invalidPoints > 0) {
qDebug() << "Line with" << invalidPoints << "INVALID POINTS";
}
_points = sanitizedPoints; _points = sanitizedPoints;
_pointsChanged = true; _pointsChanged = true;
} }

View file

@ -913,8 +913,6 @@ bool Model::addToScene(std::shared_ptr<render::Scene> scene, render::PendingChan
bool somethingAdded = false; bool somethingAdded = false;
qDebug() << "Model::addToScene : " << this->getURL().toString();
// allow the attachments to add to scene // allow the attachments to add to scene
foreach (Model* attachment, _attachments) { foreach (Model* attachment, _attachments) {
bool attachementSomethingAdded = attachment->addToScene(scene, pendingChanges); bool attachementSomethingAdded = attachment->addToScene(scene, pendingChanges);
@ -954,7 +952,6 @@ void Model::removeFromScene(std::shared_ptr<render::Scene> scene, render::Pendin
} }
_renderItems.clear(); _renderItems.clear();
_readyWhenAdded = false; _readyWhenAdded = false;
qDebug() << "Model::removeFromScene : " << this->getURL().toString();
} }
bool Model::render(RenderArgs* renderArgs, float alpha) { bool Model::render(RenderArgs* renderArgs, float alpha) {

View file

@ -313,7 +313,6 @@ protected:
/// Allow sub classes to force invalidating the bboxes /// Allow sub classes to force invalidating the bboxes
void invalidCalculatedMeshBoxes() { void invalidCalculatedMeshBoxes() {
qDebug() << "invalidCalculatedMeshBoxes()";
_calculatedMeshBoxesValid = false; _calculatedMeshBoxesValid = false;
_calculatedMeshPartBoxesValid = false; _calculatedMeshPartBoxesValid = false;
_calculatedMeshTrianglesValid = false; _calculatedMeshTrianglesValid = false;