forked from bartvdbraak/blender
Fix cycles compile issue after last commit.
This commit is contained in:
parent
03b807e7dc
commit
341aa730bd
@ -454,7 +454,7 @@ static void xml_read_shader_graph(const XMLReadState& state, Shader *shader, pug
|
||||
xml_read_ustring(&attr->attribute, node, "attribute");
|
||||
snode = attr;
|
||||
}
|
||||
else if(string_ieuals(node.name(), "camera")) {
|
||||
else if(string_iequals(node.name(), "camera")) {
|
||||
snode = new CameraNode();
|
||||
}
|
||||
else if(string_iequals(node.name(), "fresnel")) {
|
||||
|
@ -20,8 +20,8 @@
|
||||
#define __UTIL_BOUNDBOX_H__
|
||||
|
||||
#include <float.h>
|
||||
#include <cmath>
|
||||
|
||||
#include "util_math.h"
|
||||
#include "util_transform.h"
|
||||
#include "util_types.h"
|
||||
|
||||
@ -73,8 +73,8 @@ public:
|
||||
bool valid(void) const
|
||||
{
|
||||
return (min.x <= max.x) && (min.y <= max.y) && (min.z <= max.z) &&
|
||||
!(isnan(min.x) || isnan(min.y) || isnan(min.z)) &&
|
||||
!(isnan(max.x) || isnan(max.y) || isnan(max.z));
|
||||
!(std::isnan(min.x) || std::isnan(min.y) || std::isnan(min.z)) &&
|
||||
!(std::isnan(max.x) || std::isnan(max.y) || std::isnan(max.z));
|
||||
}
|
||||
|
||||
BoundBox transformed(const Transform *tfm)
|
||||
|
@ -63,7 +63,6 @@ CCL_NAMESPACE_BEGIN
|
||||
#if(!defined(FREE_WINDOWS))
|
||||
#define copysignf(x, y) ((float)_copysign(x, y))
|
||||
#define hypotf(x, y) _hypotf(x, y)
|
||||
#define isnan(x) _isnan(x)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user