mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-28 10:41:09 +00:00
hbr: fix a few more warnings
This commit is contained in:
parent
08ca7af0c9
commit
329a9a7b40
@ -94,7 +94,7 @@ public:
|
||||
if (HbrHierarchicalEdit<T>::GetNSubfaces() == face->GetDepth()) {
|
||||
// Modify vertex sharpness. Note that we could actually do
|
||||
// this in ApplyEditToVertex as well!
|
||||
float sharp;
|
||||
float sharp = 0.0f;
|
||||
if (op == HbrHierarchicalEdit<T>::Set) {
|
||||
sharp = sharpness;
|
||||
} else if (op == HbrHierarchicalEdit<T>::Add) {
|
||||
|
@ -489,7 +489,7 @@ HbrFace<T>::Initialize(HbrMesh<T>* m, HbrFace<T>* _parent, int childindex, int f
|
||||
stitchEdges = 0;
|
||||
#endif
|
||||
editOffset = -1;
|
||||
depth = _depth;
|
||||
depth = static_cast<unsigned char>(_depth);
|
||||
hole = 0;
|
||||
coarse = 0;
|
||||
protect = 0;
|
||||
|
@ -547,7 +547,8 @@ HbrVertex<T>::AddIncidentEdge(HbrHalfedge<T>* edge) {
|
||||
// will always be a boundary edge if possible. If any of the
|
||||
// incident edges are no longer boundaries at this point then they
|
||||
// can be immediately removed.
|
||||
int i, newEdgeCount = 0;
|
||||
int i;
|
||||
unsigned short newEdgeCount = 0;
|
||||
bool edgeFound = false;
|
||||
HbrHalfedge<T>** incidentEdges =
|
||||
(nIncidentEdges > 1) ? incident.edges : &incident.edge;
|
||||
|
Loading…
Reference in New Issue
Block a user