History

Working on allowing visitors to modify, as well as read, data.

Andrzej Kapolka committed 12 years ago

Commit c163b511 parent 3734aa44 files · +82 −56Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 4 files). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+4−3
@@ -157,7 +157,8 @@ void MetavoxelSystem::receivedData(const QByteArray& data, const HifiSockAddr& s · 156 unmodified lines
157157 MetavoxelSystem::PointVisitor::PointVisitor(QVector<Point>& points) :
158158 MetavoxelVisitor(QVector<AttributePointer>() <<
159159 AttributeRegistry::getInstance()->getColorAttribute() <<
160− AttributeRegistry::getInstance()->getNormalAttribute()),
160+ AttributeRegistry::getInstance()->getNormalAttribute(),
161+ QVector<AttributePointer>()),
161162 _points(points) {
162163 }
163164
@@ -165,8 +166,8 @@ bool MetavoxelSystem::PointVisitor::visit(const MetavoxelInfo& info) { · 1 unmodified line
165166 if (!info.isLeaf) {
166167 return true;
167168 }
168− QRgb color = info.attributeValues.at(0).getInlineValue<QRgb>();
169− QRgb normal = info.attributeValues.at(1).getInlineValue<QRgb>();
169+ QRgb color = info.inputValues.at(0).getInlineValue<QRgb>();
170+ QRgb normal = info.inputValues.at(1).getInlineValue<QRgb>();
170171 int alpha = qAlpha(color);
171172 if (alpha > 0) {
172173 Point point = { glm::vec4(info.minimum + glm::vec3(info.size, info.size, info.size) * 0.5f, info.size),

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t