History

Trim picks in use during quest:

danteruiz committed 7 years ago

Commit b00746c1 parent d45d8708 files · +108 −4Browse files

Showing the changes to interface/src/raypick/PickScriptingInterface.cpp (1 of 8 files). Show all

Unified · Split

interface/src/raypick/PickScriptingInterface.cpp+12−0
@@ -71,6 +71,18 @@ PickFilter getPickFilter(unsigned int filter) { · 70 unmodified lines
7171 unsigned int PickScriptingInterface::createRayPick(const QVariant& properties) {
7272 QVariantMap propMap = properties.toMap();
7373
74+
75+#if defined (Q_OS_ANDROID)
76+ QString jointName { "" };
77+ if (propMap["joint"].isValid()) {
78+ QString jointName = propMap["joint"].toString();
79+ QString mouseJoint { "Mouse" };
80+ if (jointName == mouseJoint) {
81+ return PointerEvent::INVALID_POINTER_ID;
82+ }
83+ }
84+#endif
85+
7486 bool enabled = false;
7587 if (propMap["enabled"].isValid()) {
7688 enabled = propMap["enabled"].toBool();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t