From 68c2a959dd8516823f9f501bed1ac23197e892d2 Mon Sep 17 00:00:00 2001 From: TheoXD Date: Fri, 3 Apr 2015 14:42:05 +0200 Subject: Bullet shower demo crashed because of dynamic casting in the code for object picking. Making sure the object has an ID greater than 0 before typecasting solves it. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index ee400ae6d5..f0c71da153 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -406,7 +406,7 @@ void Viewport::_notification(int p_what) { int rc = ss2d->intersect_point(point,res,64,Set(),0xFFFFFFFF,0xFFFFFFFF); for(int i=0;icast_to(); if (co) { -- cgit v1.2.3