summaryrefslogtreecommitdiffstats
path: root/examples/cpp_example
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-02-13 14:11:08 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-02-13 14:58:06 +0000
commit209efae5307bf6cf519848205dbbe637c62c4ae2 (patch)
tree4ddf105cfe9a59391a058665d4b670079e69f02d /examples/cpp_example
parent664b73dd36de6205cc84a219f936dd744a2dc184 (diff)
Make scene parsers operate on URLs instead of raw filenames
This way they are compatible with how mesh and texture source URLs are handled. Change-Id: Ifeee504fd3f5957d23f5cade92a73663488bdaf9 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/cpp_example')
-rw-r--r--examples/cpp_example/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpp_example/main.cpp b/examples/cpp_example/main.cpp
index cff6ad1f0..df20ba030 100644
--- a/examples/cpp_example/main.cpp
+++ b/examples/cpp_example/main.cpp
@@ -123,7 +123,7 @@ int main(int ac, char **av)
sceneTransform->addTransform(sceneTranslateTransform);
sceneEntity->addComponent(sceneTransform);
// scene->setSource(":/assets/gltf/wine/wine.json");
- scene->setSource(":/assets/test_scene.dae");
+ scene->setSource(QUrl("qrc:/assets/test_scene.dae"));
sceneEntity->addComponent(scene);
// Camera