Skip to content

Commit

Permalink
Main: Rectangle2D - do not update bbox by default
Browse files Browse the repository at this point in the history
to keep it at "infinite" default
  • Loading branch information
paroj committed Feb 12, 2022
1 parent 2b6e596 commit e00bca2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion OgreMain/include/OgreRectangle2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace Ogre {
@param updateAABB Tells if you want to recalculate the AABB according to
the new corners. If false, the axis aligned bounding box will remain identical.
*/
void setCorners(float left, float top, float right, float bottom, bool updateAABB = true);
void setCorners(float left, float top, float right, float bottom, bool updateAABB = false);

/** Sets the normals of the rectangle
*/
Expand Down
1 change: 0 additions & 1 deletion Samples/Python/numpy_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def main():
rect = scn_mgr.createScreenSpaceRect(True)
rect.setCorners(-0.5, 0.5, 0.5, -0.5) # in normalized screen space
rect.setMaterial(mat)
rect.setBoundingBox(Ogre.AxisAlignedBox.BOX_INFINITE)

scn_mgr.getRootSceneNode().createChildSceneNode().attachObject(rect)
## [apply_to_rect]
Expand Down

0 comments on commit e00bca2

Please sign in to comment.