浏览代码

Fixed setFixedRotation enabling other flags (bug #190)

Bill Meltsner 15 年之前
父节点
当前提交
c64e034320
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/physics/box2d/Body.cpp

+ 1 - 1
src/modules/physics/box2d/Body.cpp

@@ -296,7 +296,7 @@ namespace box2d
 		if(fixed)
 			body->m_flags |= b2Body::e_fixedRotationFlag;
 		else
-			body->m_flags |= ~(b2Body::e_fixedRotationFlag);
+			body->m_flags &= ~(b2Body::e_fixedRotationFlag);
 	}
 
 	bool Body::getFixedRotation() const