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
677 out.properties[*renderStatesName].setValue(renderStates);677 out.properties[*renderStatesName].setValue(renderStates);
678 }678 }
679 }679 }
680 qDebug() << "rayPointerPropertiesFromScriptValue" << out.properties;680 qDebug() << "stylusPointerPropertiesFromScriptValue" << out.properties;
681 return true;681 return true;
682}682}
683 683
@@ -716,6 +716,7 @@ bool parabolaPointerPropertiesFromScriptValue(const ScriptValue& value, Parabola · 32 unmodified lines
716 pathProperties.copyFromScriptValue(path, false);716 pathProperties.copyFromScriptValue(path, false);
717 stateMap.insert("pathPropertyIndex", QVariant(out.entityProperties.length()));717 stateMap.insert("pathPropertyIndex", QVariant(out.entityProperties.length()));
718 out.entityProperties.append(pathProperties);718 out.entityProperties.append(pathProperties);
719 qDebug() << "parabolaPointerPropertiesFromScriptValue : added path entity";
719 }720 }
720 721
721 if (stateMap["end"].isValid()) {722 if (stateMap["end"].isValid()) {
@@ -724,6 +725,7 @@ bool parabolaPointerPropertiesFromScriptValue(const ScriptValue& value, Parabola · 2 unmodified lines
724 endProperties.copyFromScriptValue(end, false);725 endProperties.copyFromScriptValue(end, false);
725 stateMap.insert("endPropertyIndex", QVariant(out.entityProperties.length()));726 stateMap.insert("endPropertyIndex", QVariant(out.entityProperties.length()));
726 out.entityProperties.append(endProperties);727 out.entityProperties.append(endProperties);
728 qDebug() << "parabolaPointerPropertiesFromScriptValue : added end entity";
727 }729 }
728 // V8TODO: Check if path is a polyline and if values are valid730 // V8TODO: Check if path is a polyline and if values are valid
729 renderStates[i].setValue(stateMap);731 renderStates[i].setValue(stateMap);
@@ -732,6 +734,6 @@ bool parabolaPointerPropertiesFromScriptValue(const ScriptValue& value, Parabola · 2 unmodified lines
732 out.properties[*renderStatesName].setValue(renderStates);734 out.properties[*renderStatesName].setValue(renderStates);
733 }735 }
734 }736 }
735 qDebug() << "rayPointerPropertiesFromScriptValue" << out.properties;737 qDebug() << "parabolaPointerPropertiesFromScriptValue" << out.properties;
736 return true;738 return true;
737}739}

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