History

first pass creating Qt <-> QtScript interface

Heather Anderson committed 4 years ago

Commit bc6eaf21 parent bd0455463 files · +1707 −294Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 63 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+2−1
@@ -1690,7 +1690,7 @@ ScriptValue RayToEntityIntersectionResultToScriptValue(ScriptEngine* engine, con · 1689 unmodified lines
1690 return obj;1690 return obj;
1691}1691}
1692 1692
1693void RayToEntityIntersectionResultFromScriptValue(const ScriptValue& object, RayToEntityIntersectionResult& value) {1693bool RayToEntityIntersectionResultFromScriptValue(const ScriptValue& object, RayToEntityIntersectionResult& value) {
1694 value.intersects = object.property("intersects").toVariant().toBool();1694 value.intersects = object.property("intersects").toVariant().toBool();
1695 value.accurate = object.property("accurate").toVariant().toBool();1695 value.accurate = object.property("accurate").toVariant().toBool();
1696 ScriptValue entityIDValue = object.property("entityID");1696 ScriptValue entityIDValue = object.property("entityID");
@@ -1707,6 +1707,7 @@ void RayToEntityIntersectionResultFromScriptValue(const ScriptValue& object, Ray · 10 unmodified lines
1707 vec3FromScriptValue(surfaceNormal, value.surfaceNormal);1707 vec3FromScriptValue(surfaceNormal, value.surfaceNormal);
1708 }1708 }
1709 value.extraInfo = object.property("extraInfo").toVariant().toMap();1709 value.extraInfo = object.property("extraInfo").toVariant().toMap();
1710 return true;
1710}1711}
1711 1712
1712bool EntityScriptingInterface::polyVoxWorker(QUuid entityID, std::function<bool(PolyVoxEntityItem&)> actor) {1713bool EntityScriptingInterface::polyVoxWorker(QUuid entityID, std::function<bool(PolyVoxEntityItem&)> actor) {

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