Skip to content

Commit

Permalink
Interactive: Don't try to activate physics for incomplete objects
Browse files Browse the repository at this point in the history
Fixes: issue #1259
(cherry picked from commit 7536846)
  • Loading branch information
dscharrer committed Aug 29, 2021
1 parent a3b7e3d commit da554e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/Interactive.cpp
Expand Up @@ -2315,7 +2315,7 @@ void ARX_INTERACTIVE_ActivatePhysics(EntityHandle t) {
Entity * io = entities.get(t);
if(io) {

if(io == g_draggedEntity || io->show != SHOW_FLAG_IN_SCENE) {
if(io == g_draggedEntity || io->show != SHOW_FLAG_IN_SCENE || !io->obj || !io->obj->pbox) {
return;
}

Expand Down

0 comments on commit da554e0

Please sign in to comment.