cleanup: cleaned up a few print statements here and there
This commit is contained in:
parent
c291be7552
commit
0dc8254065
5 changed files with 0 additions and 9 deletions
|
@ -292,7 +292,6 @@ result<InstanceRef, NoSuchInstance> Instance::Deserialize(pugi::xml_node node) {
|
|||
return NoSuchInstance(className);
|
||||
}
|
||||
// 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();
|
||||
object->GetChildren();
|
||||
|
||||
|
@ -399,7 +398,6 @@ std::optional<std::shared_ptr<Instance>> Instance::Clone(RefState<_RefStatePrope
|
|||
}
|
||||
} else {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,8 +32,6 @@ void Snap::buildJoint() {
|
|||
part1.lock()->cframe = newFrame;
|
||||
workspace->SyncPartPhysics(part1.lock());
|
||||
|
||||
// printf("c1.Rotation: ");
|
||||
// printVec(c1.ToEulerAnglesXYZ());
|
||||
rp::FixedJointInfo jointInfo(part0.lock()->rigidBody, part1.lock()->rigidBody, (c0.Inverse() * c1).Position());
|
||||
this->joint = dynamic_cast<rp::FixedJoint*>(workspace->physicsWorld->createJoint(jointInfo));
|
||||
jointWorkspace = workspace;
|
||||
|
|
|
@ -32,8 +32,6 @@ void Weld::buildJoint() {
|
|||
part1.lock()->cframe = newFrame;
|
||||
workspace->SyncPartPhysics(part1.lock());
|
||||
|
||||
// printf("c1.Rotation: ");
|
||||
// printVec(c1.ToEulerAnglesXYZ());
|
||||
rp::FixedJointInfo jointInfo(part0.lock()->rigidBody, part1.lock()->rigidBody, (c0.Inverse() * c1).Position());
|
||||
this->joint = dynamic_cast<rp::FixedJoint*>(workspace->physicsWorld->createJoint(jointInfo));
|
||||
jointWorkspace = workspace;
|
||||
|
|
|
@ -86,7 +86,6 @@ void Workspace::SyncPartPhysics(std::shared_ptr<Part> part) {
|
|||
part->rigidBody->setLinearVelocity(part->velocity);
|
||||
// part->rigidBody->setMass(density * part->size.x * part->size.y * part->size.z);
|
||||
|
||||
// printf("Bits unset\n");
|
||||
part->rigidBody->setUserData(&*part);
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,6 @@ void PlaceDocument::closeEvent(QCloseEvent *closeEvent) {
|
|||
std::shared_ptr<Part> shit;
|
||||
static std::chrono::time_point lastTime = std::chrono::steady_clock::now();
|
||||
void PlaceDocument::timerEvent(QTimerEvent* evt) {
|
||||
// printf("Is anchored: %d\n", shit->anchored);
|
||||
if (evt->timerId() != timer.timerId()) {
|
||||
QWidget::timerEvent(evt);
|
||||
return;
|
||||
|
@ -104,7 +103,6 @@ void PlaceDocument::init() {
|
|||
gWorkspace()->SyncPartPhysics(lastPart);
|
||||
auto part1 = lastPart;
|
||||
|
||||
printf("How many times is this called\n");
|
||||
lastPart = Part::New();
|
||||
shit = part1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue