forked from blender/blender
Fix linux build #33
@ -430,8 +430,7 @@ NodeItem NodeItem::atan() const
|
|||||||
|
|
||||||
NodeItem NodeItem::atan2(const NodeItem &other) const
|
NodeItem NodeItem::atan2(const NodeItem &other) const
|
||||||
{
|
{
|
||||||
return to_vector().arithmetic(
|
return to_vector().arithmetic(other, "atan2", [](float a, float b) { return std::atan2(a, b); });
|
||||||
other, "atan2", [](float a, float b) { return std::atan2(a, b); });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NodeItem NodeItem::sinh() const
|
NodeItem NodeItem::sinh() const
|
||||||
|
@ -18,7 +18,7 @@ extern struct CLG_LogRef *LOG_MATERIALX_SHADER;
|
|||||||
|
|
||||||
class GroupNodeParser;
|
class GroupNodeParser;
|
||||||
|
|
||||||
using ExportImageFunction = std::function<std::string(Main *,Scene *, Image *, ImageUser *)>;
|
using ExportImageFunction = std::function<std::string(Main *, Scene *, Image *, ImageUser *)>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is base abstraction class for parsing Blender nodes into MaterialX nodes.
|
* This is base abstraction class for parsing Blender nodes into MaterialX nodes.
|
||||||
@ -123,8 +123,7 @@ struct NodeParserData {
|
|||||||
void node_shader_materialx(void *data, struct bNode *node, struct bNodeSocket *out) \
|
void node_shader_materialx(void *data, struct bNode *node, struct bNodeSocket *out) \
|
||||||
{ \
|
{ \
|
||||||
materialx::NodeParserData *d = reinterpret_cast<materialx::NodeParserData *>(data); \
|
materialx::NodeParserData *d = reinterpret_cast<materialx::NodeParserData *>(data); \
|
||||||
d->result = MaterialXNodeParser( \
|
d->result = MaterialXNodeParser(d->graph, \
|
||||||
d->graph, \
|
|
||||||
d->depsgraph, \
|
d->depsgraph, \
|
||||||
d->material, \
|
d->material, \
|
||||||
node, \
|
node, \
|
||||||
|
Loading…
Reference in New Issue
Block a user