From 68c2a959dd8516823f9f501bed1ac23197e892d2 Mon Sep 17 00:00:00 2001 From: TheoXD Date: Fri, 3 Apr 2015 14:42:05 +0200 Subject: [PATCH] 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 ee400ae6d5a..f0c71da153a 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) {