Fix heightmap shadow rt and draw the light pos

This commit is contained in:
2019-01-10 22:21:44 +01:00
parent 9787175b13
commit 6ba29926ef
7 changed files with 40 additions and 22 deletions

View File

@@ -132,7 +132,7 @@ kEventResult Node::on_event(Event* e)
case kEventType::MouseDownR:
case kEventType::MouseUpL:
case kEventType::MouseUpR:
if ((inside || m_mouse_captured) && (handle_event(e) == kEventResult::Consumed || m_force_mouse_capture))
if ((inside || m_mouse_captured) && ((handle_event(e) == kEventResult::Consumed) || m_force_mouse_capture))
return kEventResult::Consumed;
break;
case kEventType::MouseMove: