so much debugging only to find I was looking in the wrong place.

This commit is contained in:
Yggdrasil75
2026-02-06 10:05:12 -05:00
parent 17e4cdf1a5
commit 73eaa63dfb
3 changed files with 104 additions and 28 deletions

View File

@@ -795,10 +795,14 @@ public:
bool move(const PointType& pos, const PointType& newPos) {
auto pointData = find(pos);
if (!pointData) return false;
if (!remove(pos)) return false;
return set(pointData->data, pointData->position, pointData->visible, pointData->color, pointData->size,
bool success = set(pointData->data, newPos, pointData->visible, pointData->color, pointData->size,
pointData->active, pointData->objectId, pointData->light, pointData->emittance,
pointData->refraction, pointData->reflection, pointData->shape);
if (success) {
remove(pos);
return true;
}
return false;
}
bool setObjectId(const PointType& pos, int objectId, float tolerance = 0.0001f) {