From e8d8f20acb5e51354762b41fd6397f32c1b74dcc Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 8 Mar 2020 10:30:04 +0100 Subject: [PATCH] collide: fix pusher convex angle detection for visible geometry Previously it was only working for CollisionPolygon. Fixes #879 --- panda/src/collide/collisionHandlerPusher.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/collide/collisionHandlerPusher.cxx b/panda/src/collide/collisionHandlerPusher.cxx index 5881b7e177..fb7dc87c66 100644 --- a/panda/src/collide/collisionHandlerPusher.cxx +++ b/panda/src/collide/collisionHandlerPusher.cxx @@ -173,8 +173,8 @@ handle_entries() { const CollisionSolid *s2 = sd2._entry->get_into(); if (s1 != nullptr && s2 != nullptr && - s1->is_exact_type(CollisionPolygon::get_class_type()) && - s2->is_exact_type(CollisionPolygon::get_class_type()) && + s1->is_of_type(CollisionPolygon::get_class_type()) && + s2->is_of_type(CollisionPolygon::get_class_type()) && sd._entry->get_into_node_path() == sd2._entry->get_into_node_path()) { const CollisionPolygon *p1 = DCAST(CollisionPolygon, s1);