X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_vectorangle.cpp;h=8d153616957f35ad76240785dd38bf21eb739758;hb=c318e91118d00d944b39c88eb6a34f6c6a89489e;hp=c339d2fd03fb17fb592a6981d91fc39a4726fb08;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_vectorangle.cpp b/synfig-core/src/synfig/valuenode_vectorangle.cpp index c339d2f..8d15361 100644 --- a/synfig-core/src/synfig/valuenode_vectorangle.cpp +++ b/synfig-core/src/synfig/valuenode_vectorangle.cpp @@ -62,8 +62,6 @@ ValueNode_VectorAngle::ValueNode_VectorAngle(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -167,3 +165,17 @@ ValueNode_VectorAngle::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_ANGLE; } + + +LinkableValueNode::Vocab +ValueNode_VectorAngle::get_param_vocab()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"vector") + .set_local_name(_("Vector")) + .set_description(_("The vector where the angle is calculated from")) + ); + + return ret; +}