Skip to content
Snippets Groups Projects
Unverified Commit 414dc570 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #120 from MedericFourmy/devel

Small Qt4/5 inconsistency
parents cc2f9354 fb510711
No related branches found
No related tags found
No related merge requests found
...@@ -30,8 +30,10 @@ void NodeCallback::selected (SelectionEvent* event) ...@@ -30,8 +30,10 @@ void NodeCallback::selected (SelectionEvent* event)
corbaserver::Position_slice* pos = corbaserver::Position_alloc(); corbaserver::Position_slice* pos = corbaserver::Position_alloc();
corbaserver::Position_slice* nor = corbaserver::Position_alloc(); corbaserver::Position_slice* nor = corbaserver::Position_alloc();
if (event->hasIntersection()) { if (event->hasIntersection()) {
impl::to(event->point (false), pos, 3); QVector3D v = event->point (false);
impl::to(event->normal(false), nor, 3); pos[0] = (float)v.x(); pos[1] = (float)v.y(); pos[2] = (float)v.z();
v = event->normal(false);
nor[0] = (float)v.x(); nor[1] = (float)v.y(); nor[2] = (float)v.z();
} else { } else {
pos[0] = pos[1] = pos[2] = 0; pos[0] = pos[1] = pos[2] = 0;
nor[0] = nor[1] = nor[2] = 0; nor[0] = nor[1] = nor[2] = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment