cleanup: cleaned up a few print statements here and there

This commit is contained in:
maelstrom 2025-04-29 23:07:09 +02:00
parent c291be7552
commit 0dc8254065
5 changed files with 0 additions and 9 deletions

View file

@ -292,7 +292,6 @@ result<InstanceRef, NoSuchInstance> Instance::Deserialize(pugi::xml_node node) {
return NoSuchInstance(className); return NoSuchInstance(className);
} }
// This will error if an abstract instance is used in the file. Oh well, not my prob rn. // This will error if an abstract instance is used in the file. Oh well, not my prob rn.
// printf("What are you? A %s sandwich\n", className.c_str());
InstanceRef object = INSTANCE_MAP[className]->constructor(); InstanceRef object = INSTANCE_MAP[className]->constructor();
object->GetChildren(); object->GetChildren();
@ -399,7 +398,6 @@ std::optional<std::shared_ptr<Instance>> Instance::Clone(RefState<_RefStatePrope
} }
} else { } else {
Data::Variant value = GetPropertyValue(property).expect(); Data::Variant value = GetPropertyValue(property).expect();
// printf("property: %s, value: %s\n", property.c_str(), std::string(value.ToString()).c_str());
newInstance->SetPropertyValue(property, value).expect(); newInstance->SetPropertyValue(property, value).expect();
} }
} }

View file

@ -32,8 +32,6 @@ void Snap::buildJoint() {
part1.lock()->cframe = newFrame; part1.lock()->cframe = newFrame;
workspace->SyncPartPhysics(part1.lock()); workspace->SyncPartPhysics(part1.lock());
// printf("c1.Rotation: ");
// printVec(c1.ToEulerAnglesXYZ());
rp::FixedJointInfo jointInfo(part0.lock()->rigidBody, part1.lock()->rigidBody, (c0.Inverse() * c1).Position()); rp::FixedJointInfo jointInfo(part0.lock()->rigidBody, part1.lock()->rigidBody, (c0.Inverse() * c1).Position());
this->joint = dynamic_cast<rp::FixedJoint*>(workspace->physicsWorld->createJoint(jointInfo)); this->joint = dynamic_cast<rp::FixedJoint*>(workspace->physicsWorld->createJoint(jointInfo));
jointWorkspace = workspace; jointWorkspace = workspace;

View file

@ -32,8 +32,6 @@ void Weld::buildJoint() {
part1.lock()->cframe = newFrame; part1.lock()->cframe = newFrame;
workspace->SyncPartPhysics(part1.lock()); workspace->SyncPartPhysics(part1.lock());
// printf("c1.Rotation: ");
// printVec(c1.ToEulerAnglesXYZ());
rp::FixedJointInfo jointInfo(part0.lock()->rigidBody, part1.lock()->rigidBody, (c0.Inverse() * c1).Position()); rp::FixedJointInfo jointInfo(part0.lock()->rigidBody, part1.lock()->rigidBody, (c0.Inverse() * c1).Position());
this->joint = dynamic_cast<rp::FixedJoint*>(workspace->physicsWorld->createJoint(jointInfo)); this->joint = dynamic_cast<rp::FixedJoint*>(workspace->physicsWorld->createJoint(jointInfo));
jointWorkspace = workspace; jointWorkspace = workspace;

View file

@ -86,7 +86,6 @@ void Workspace::SyncPartPhysics(std::shared_ptr<Part> part) {
part->rigidBody->setLinearVelocity(part->velocity); part->rigidBody->setLinearVelocity(part->velocity);
// part->rigidBody->setMass(density * part->size.x * part->size.y * part->size.z); // part->rigidBody->setMass(density * part->size.x * part->size.y * part->size.z);
// printf("Bits unset\n");
part->rigidBody->setUserData(&*part); part->rigidBody->setUserData(&*part);
} }

View file

@ -53,7 +53,6 @@ void PlaceDocument::closeEvent(QCloseEvent *closeEvent) {
std::shared_ptr<Part> shit; std::shared_ptr<Part> shit;
static std::chrono::time_point lastTime = std::chrono::steady_clock::now(); static std::chrono::time_point lastTime = std::chrono::steady_clock::now();
void PlaceDocument::timerEvent(QTimerEvent* evt) { void PlaceDocument::timerEvent(QTimerEvent* evt) {
// printf("Is anchored: %d\n", shit->anchored);
if (evt->timerId() != timer.timerId()) { if (evt->timerId() != timer.timerId()) {
QWidget::timerEvent(evt); QWidget::timerEvent(evt);
return; return;
@ -104,7 +103,6 @@ void PlaceDocument::init() {
gWorkspace()->SyncPartPhysics(lastPart); gWorkspace()->SyncPartPhysics(lastPart);
auto part1 = lastPart; auto part1 = lastPart;
printf("How many times is this called\n");
lastPart = Part::New(); lastPart = Part::New();
shit = part1; shit = part1;