Browse Source

Merge pull request #1262 from seanpaultaylor/next

Next
Sean Taylor 12 years ago
parent
commit
f493b33830
1 changed files with 9 additions and 1 deletions
  1. 9 1
      gameplay/src/Node.cpp

+ 9 - 1
gameplay/src/Node.cpp

@@ -292,9 +292,17 @@ void Node::setUserPointer(void* pointer, void (*cleanupCallback)(void*))
     }
 }
 
+
+
 void Node::setActive(bool active)
 {
-    _active = active;
+    if (_active != active)
+    {
+        if (_collisionObject)
+            _collisionObject->setEnabled(active);
+
+        _active = active;
+    }
 }
 
 bool Node::isActive() const