History

cleanup in prep for PR

ZappoMan committed 12 years ago

Commit 58759d31 parent 73d5e8c23 files · +168 −646Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 23 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+0−14
@@ -90,8 +90,6 @@ EntityItemProperties EntityScriptingInterface::getEntityProperties(EntityItemID · 89 unmodified lines
9090 return results;
9191 }
9292
93−
94−
9593 EntityItemID EntityScriptingInterface::editEntity(EntityItemID entityID, const EntityItemProperties& properties) {
9694 EntityItemID actualID = entityID;
9795
@@ -104,7 +102,6 @@ EntityItemID EntityScriptingInterface::editEntity(EntityItemID entityID, const E · 6 unmodified lines
104102 if (actualID.id != UNKNOWN_ENTITY_ID) {
105103 entityID.id = actualID.id;
106104 entityID.isKnownID = true;
107− //qDebug() << "EntityScriptingInterface::editEntity()... isKnownID=" << entityID.isKnownID << "id=" << entityID.id << "creatorTokenID=" << entityID.creatorTokenID;
108105 queueEntityMessage(PacketTypeEntityAddOrEdit, entityID, properties);
109106 }
110107
@@ -112,19 +109,12 @@ EntityItemID EntityScriptingInterface::editEntity(EntityItemID entityID, const E · 1 unmodified line
112109 // the actual id, because we can edit out local models just with creatorTokenID
113110 if (_entityTree) {
114111 _entityTree->lockForWrite();
115− //qDebug() << "EntityScriptingInterface::editEntity() ******* START _entityTree->updateEntity()...";
116112 _entityTree->updateEntity(entityID, properties);
117− //qDebug() << "EntityScriptingInterface::editEntity() ******* DONE _entityTree->updateEntity()...";
118113 _entityTree->unlock();
119114 }
120115 return entityID;
121116 }
122117
123−
124−// TODO: This deleteEntity() method uses the PacketTypeEntityAddOrEdit message to send
125−// a changed model with a shouldDie() property set to true. This works and is currently the only
126−// way to tell the model server to delete a model. But we should change this to use the PacketTypeEntityErase
127−// message which takes a list of model id's to delete.
128118 void EntityScriptingInterface::deleteEntity(EntityItemID entityID) {
129119
130120 EntityItemID actualID = entityID;
@@ -220,10 +210,6 @@ RayToEntityIntersectionResult EntityScriptingInterface::findRayIntersectionWorke · 89 unmodified lines
220210 result.intersects = _entityTree->findRayIntersection(ray.origin, ray.direction, element, result.distance, result.face,
221211 (void**)&intersectedEntity, lockType, &result.accurate);
222212 if (result.intersects && intersectedEntity) {
223−
224− //qDebug() << "findRayIntersectionWorker().... intersectedEntity=" << intersectedEntity;
225− //intersectedEntity->debugDump();
226−
227213 result.entityID = intersectedEntity->getEntityItemID();
228214 result.properties = intersectedEntity->getProperties();
229215 result.intersection = ray.origin + (ray.direction * result.distance);

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