common: small tweaks: CopyWinding accepts null, document face side
This commit is contained in:
parent
e44dbf9307
commit
f0e2f4ba96
|
|
@ -223,6 +223,10 @@ polylib::BaseWindingForPlane(const vec3_t normal, const float dist)
|
||||||
polylib::winding_t *
|
polylib::winding_t *
|
||||||
polylib::CopyWinding(const winding_t * w)
|
polylib::CopyWinding(const winding_t * w)
|
||||||
{
|
{
|
||||||
|
if (w == nullptr) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
int size;
|
int size;
|
||||||
winding_t *c;
|
winding_t *c;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -402,7 +402,7 @@ typedef struct {
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_t planenum;
|
int32_t planenum;
|
||||||
int32_t side;
|
int32_t side; // if true, the face is on the back side of the plane
|
||||||
int32_t firstedge; /* we must support > 64k edges */
|
int32_t firstedge; /* we must support > 64k edges */
|
||||||
int32_t numedges;
|
int32_t numedges;
|
||||||
int32_t texinfo;
|
int32_t texinfo;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue