collide: create compatibility header collisionTube.h

This is a separate commit from the previous one in order not to confuse Git's rename tracking.
This commit is contained in:
rdb 2018-12-23 19:49:00 +01:00
parent bd6ef2b0ea
commit e2574af82d
2 changed files with 27 additions and 7 deletions

View File

@ -156,13 +156,6 @@ private:
friend class CollisionBox;
};
BEGIN_PUBLISH
/**
* Alias for backward compatibility.
*/
typedef CollisionCapsule CollisionTube;
END_PUBLISH
#include "collisionCapsule.I"
#endif

View File

@ -0,0 +1,27 @@
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file collisionTube.h
* @author rdb
* @date 2018-12-23
*/
#ifndef COLLISIONTUBE_H
#define COLLISIONTUBE_H
#include "collisionCapsule.h"
BEGIN_PUBLISH
/**
* Alias for backward compatibility.
* @deprecated use CollisionCapsule instead.
*/
typedef CollisionCapsule CollisionTube;
END_PUBLISH
#endif