History

make SkeletonModel be shared_ptr friendly as well

Brad Hefta-Gaub committed 10 years ago

Commit 917c4641 parent 7483b856 files · +99 −93Browse files

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

Unified · Split

interface/src/Application.cpp+3−2
@@ -754,7 +754,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 753 unmodified lines
754754 connect(&nodeList->getPacketReceiver(), &PacketReceiver::dataReceived,
755755 bandwidthRecorder.data(), &BandwidthRecorder::updateInboundData);
756756
757− connect(&getMyAvatar()->getSkeletonModel(), &SkeletonModel::skeletonLoaded,
757+ // FIXME -- I'm a little concerned about this.
758+ connect(getMyAvatar()->getSkeletonModel().get(), &SkeletonModel::skeletonLoaded,
758759 this, &Application::checkSkeleton, Qt::QueuedConnection);
759760
760761 // Setup the userInputMapper with the actions
@@ -4595,7 +4596,7 @@ void Application::notifyPacketVersionMismatch() { · 3834 unmodified lines
45954596 }
45964597
45974598 void Application::checkSkeleton() {
4598− if (getMyAvatar()->getSkeletonModel().isActive() && !getMyAvatar()->getSkeletonModel().hasSkeleton()) {
4599+ if (getMyAvatar()->getSkeletonModel()->isActive() && !getMyAvatar()->getSkeletonModel()->hasSkeleton()) {
45994600 qCDebug(interfaceapp) << "MyAvatar model has no skeleton";
46004601
46014602 QString message = "Your selected avatar body has no skeleton.\n\nThe default body will be loaded...";