making requested chantges

This commit is contained in:
danteruiz 2019-02-19 10:07:36 -08:00
parent b00746c096
commit 4bbae1230d
3 changed files with 4 additions and 6 deletions

View file

@ -76,8 +76,8 @@ unsigned int PickScriptingInterface::createRayPick(const QVariant& properties) {
QString jointName { "" };
if (propMap["joint"].isValid()) {
QString jointName = propMap["joint"].toString();
QString mouseJoint { "Mouse" };
if (jointName == mouseJoint) {
const QString MOUSE_JOINT = "Mouse";
if (jointName == MOUSE_JOINT) {
return PointerEvent::INVALID_POINTER_ID;
}
}

View file

@ -154,8 +154,8 @@ unsigned int PointerScriptingInterface::createLaserPointer(const QVariant& prope
QString jointName { "" };
if (propertyMap["joint"].isValid()) {
QString jointName = propertyMap["joint"].toString();
QString mouseJoint { "Mouse" };
if (jointName == mouseJoint) {
const QString MOUSE_JOINT = "Mouse";
if (jointName == MOUSE_JOINT) {
return PointerEvent::INVALID_POINTER_ID;
}
}

View file

@ -11,8 +11,6 @@
#include <unordered_map>
#include "Pick.h"
#include "PerfStat.h"
#include "Profile.h"
typedef struct PickCacheKey {
PickFilter::Flags mask;