Skip to content

Commit

Permalink
Merge pull request #6 from serguei-k/array_ops
Browse files Browse the repository at this point in the history
Array ops
  • Loading branch information
serguei-k authored May 15, 2018
2 parents 72e2452 + d561a4b commit e81f968
Show file tree
Hide file tree
Showing 24 changed files with 1,009 additions and 89 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ endif()
# Create target
add_library(mayaMathNodes SHARED
src/Absolute.h
src/Add.h
src/Add.h
src/Array.h
src/Condition.h
src/Clamp.h
src/Distance.h
Expand Down
4 changes: 2 additions & 2 deletions src/Absolute.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class AbsoluteNode : public BaseNode<TClass, TTypeName>
public:
static MStatus initialize()
{
createAttribute(inputAttr_, "input", TAttrType(0.0));
createAttribute(outputAttr_, "output", TAttrType(0.0), false);
createAttribute(inputAttr_, "input", DefaultValue<TAttrType>());
createAttribute(outputAttr_, "output", DefaultValue<TAttrType>(), false);

MPxNode::addAttribute(inputAttr_);
MPxNode::addAttribute(outputAttr_);
Expand Down
6 changes: 3 additions & 3 deletions src/Add.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class AddNode : public BaseNode<TClass, TTypeName>
public:
static MStatus initialize()
{
createAttribute(input1Attr_, "input1", DefaultValue<TInOutAttrType>(0.0));
createAttribute(input2Attr_, "input2", DefaultValue<TInAttrType>(0.0));
createAttribute(outputAttr_, "output", DefaultValue<TInOutAttrType>(0.0), false);
createAttribute(input1Attr_, "input1", DefaultValue<TInOutAttrType>());
createAttribute(input2Attr_, "input2", DefaultValue<TInAttrType>());
createAttribute(outputAttr_, "output", DefaultValue<TInOutAttrType>(), false);

MPxNode::addAttribute(input1Attr_);
MPxNode::addAttribute(input2Attr_);
Expand Down
Loading

0 comments on commit e81f968

Please sign in to comment.