Browse Source

collide: create compatibility header collisionTube.h

This is a separate commit from the previous one in order not to confuse Git's rename tracking.
rdb 7 years ago
parent
commit
e2574af82d
2 changed files with 27 additions and 7 deletions
  1. 0 7
      panda/src/collide/collisionCapsule.h
  2. 27 0
      panda/src/collide/collisionTube.h

+ 0 - 7
panda/src/collide/collisionCapsule.h

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

+ 27 - 0
panda/src/collide/collisionTube.h

@@ -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