remove debug logging

This commit is contained in:
David Kelly 2017-02-14 14:28:20 -07:00
parent 17acd8fa4f
commit 08d30608c7

View file

@ -21,7 +21,6 @@ QList<EntityItemID> EntityEditFilters::getZonesByPosition(glm::vec3& position) {
_lock.lockForRead(); _lock.lockForRead();
auto zoneIDs = _filterDataMap.keys(); auto zoneIDs = _filterDataMap.keys();
_lock.unlock(); _lock.unlock();
qCDebug(entities) << "looking at " << zoneIDs.size() << "possible zones, at " << position;
for (auto id : zoneIDs) { for (auto id : zoneIDs) {
if (!id.isInvalidID()) { if (!id.isInvalidID()) {
// for now, look it up in the tree (soon we need to cache or similar?) // for now, look it up in the tree (soon we need to cache or similar?)
@ -44,17 +43,14 @@ QList<EntityItemID> EntityEditFilters::getZonesByPosition(glm::vec3& position) {
bool EntityEditFilters::filter(glm::vec3& position, EntityItemProperties& propertiesIn, EntityItemProperties& propertiesOut, bool& wasChanged, bool EntityEditFilters::filter(glm::vec3& position, EntityItemProperties& propertiesIn, EntityItemProperties& propertiesOut, bool& wasChanged,
EntityTree::FilterType filterType, EntityItemID& itemID) { EntityTree::FilterType filterType, EntityItemID& itemID) {
qCDebug(entities) << "in EntityEditFilters";
// get the ids of all the zones (plus the global entity edit filter) that the position // get the ids of all the zones (plus the global entity edit filter) that the position
// lies within // lies within
auto zoneIDs = getZonesByPosition(position); auto zoneIDs = getZonesByPosition(position);
for (auto id : zoneIDs) { for (auto id : zoneIDs) {
if (id == itemID) { if (id == itemID) {
qCDebug(entities) << "zone filter not applied to its own edit";
continue; continue;
} }
qCDebug(entities) << "applying filter for zone" << id;
// get the filter pair, etc... // get the filter pair, etc...
_lock.lockForRead(); _lock.lockForRead();
@ -63,7 +59,6 @@ bool EntityEditFilters::filter(glm::vec3& position, EntityItemProperties& proper
if (filterData.valid()) { if (filterData.valid()) {
if (filterData.rejectAll) { if (filterData.rejectAll) {
qCDebug(entities) << "rejecting all edits";
return false; return false;
} }
auto oldProperties = propertiesIn.getDesiredProperties(); auto oldProperties = propertiesIn.getDesiredProperties();
@ -83,7 +78,6 @@ bool EntityEditFilters::filter(glm::vec3& position, EntityItemProperties& proper
} }
if (result.isObject()){ if (result.isObject()){
qCDebug(entities) << "filter result accepted";
// make propertiesIn reflect the changes, for next filter... // make propertiesIn reflect the changes, for next filter...
propertiesIn.copyFromScriptValue(result, false); propertiesIn.copyFromScriptValue(result, false);