History

Fixed parabola pointers, code cleanup

ksuprynowicz committed 3 years ago

Commit d74089d1 parent f79ec0f8 files · +40 −69Browse files

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

Unified · Split

interface/src/raypick/PointerScriptingInterface.cpp+4−2
@@ -677,7 +677,7 @@ bool stylusPointerPropertiesFromScriptValue(const ScriptValue& value, StylusPoin · 676 unmodified lines
677677 out.properties[*renderStatesName].setValue(renderStates);
678678 }
679679 }
680− qDebug() << "rayPointerPropertiesFromScriptValue" << out.properties;
680+ qDebug() << "stylusPointerPropertiesFromScriptValue" << out.properties;
681681 return true;
682682 }
683683
@@ -716,6 +716,7 @@ bool parabolaPointerPropertiesFromScriptValue(const ScriptValue& value, Parabola · 32 unmodified lines
716716 pathProperties.copyFromScriptValue(path, false);
717717 stateMap.insert("pathPropertyIndex", QVariant(out.entityProperties.length()));
718718 out.entityProperties.append(pathProperties);
719+ qDebug() << "parabolaPointerPropertiesFromScriptValue : added path entity";
719720 }
720721
721722 if (stateMap["end"].isValid()) {
@@ -724,6 +725,7 @@ bool parabolaPointerPropertiesFromScriptValue(const ScriptValue& value, Parabola · 2 unmodified lines
724725 endProperties.copyFromScriptValue(end, false);
725726 stateMap.insert("endPropertyIndex", QVariant(out.entityProperties.length()));
726727 out.entityProperties.append(endProperties);
728+ qDebug() << "parabolaPointerPropertiesFromScriptValue : added end entity";
727729 }
728730 // V8TODO: Check if path is a polyline and if values are valid
729731 renderStates[i].setValue(stateMap);
@@ -732,6 +734,6 @@ bool parabolaPointerPropertiesFromScriptValue(const ScriptValue& value, Parabola · 2 unmodified lines
732734 out.properties[*renderStatesName].setValue(renderStates);
733735 }
734736 }
735− qDebug() << "rayPointerPropertiesFromScriptValue" << out.properties;
737+ qDebug() << "parabolaPointerPropertiesFromScriptValue" << out.properties;
736738 return true;
737739 }

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