History

trying to separate colors and vectors

SamGondelman committed 8 years ago

Commit 9b75c7e1 parent 673063541 files · +354 −225Browse files

Showing the changes to libraries/script-engine/src/SpatialEvent.cpp (1 of 41 files). Show all

Unified · Split

libraries/script-engine/src/SpatialEvent.cpp+2−2
@@ -33,9 +33,9 @@ SpatialEvent::SpatialEvent(const SpatialEvent& event) { · 32 unmodified lines
33QScriptValue SpatialEvent::toScriptValue(QScriptEngine* engine, const SpatialEvent& event) {33QScriptValue SpatialEvent::toScriptValue(QScriptEngine* engine, const SpatialEvent& event) {
34 QScriptValue obj = engine->newObject();34 QScriptValue obj = engine->newObject();
35 35
36 obj.setProperty("locTranslation", vec3FloatToScriptValue(engine, event.locTranslation) );36 obj.setProperty("locTranslation", vec3ToScriptValue(engine, event.locTranslation) );
37 obj.setProperty("locRotation", quatToScriptValue(engine, event.locRotation) );37 obj.setProperty("locRotation", quatToScriptValue(engine, event.locRotation) );
38 obj.setProperty("absTranslation", vec3FloatToScriptValue(engine, event.absTranslation) );38 obj.setProperty("absTranslation", vec3ToScriptValue(engine, event.absTranslation) );
39 obj.setProperty("absRotation", quatToScriptValue(engine, event.absRotation) );39 obj.setProperty("absRotation", quatToScriptValue(engine, event.absRotation) );
40 40
41 return obj;41 return obj;

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