X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_geometry%2Frectangle.cpp;h=0d4b94ac1d1e7091ce8be2a011da7c0517d5c110;hb=refs%2Fheads%2Fmaster;hp=374af9c1a7a98c2d1a90067fd35a197bf0a27f6c;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/modules/mod_geometry/rectangle.cpp b/synfig-core/src/modules/mod_geometry/rectangle.cpp index 374af9c..0d4b94a 100644 --- a/synfig-core/src/modules/mod_geometry/rectangle.cpp +++ b/synfig-core/src/modules/mod_geometry/rectangle.cpp @@ -75,13 +75,15 @@ inline int floor_to_int(const double x) { return static_cast(floor(x)); } /* === E N T R Y P O I N T ================================================= */ Rectangle::Rectangle(): - Layer_Composite(1.0,Color::BLEND_STRAIGHT), + Layer_Composite(1.0,Color::BLEND_COMPOSITE), color(Color::black()), point1(0,0), point2(1,1), expand(0), invert(false) { + Layer::Vocab voc(get_param_vocab()); + Layer::fill_static(voc); } bool @@ -120,15 +122,18 @@ Rectangle::get_param_vocab()const ret.push_back(ParamDesc("color") .set_local_name(_("Color")) + .set_description(_("Fill color of the layer")) ); ret.push_back(ParamDesc("point1") .set_local_name(_("Point 1")) .set_box("point2") + .set_description(_("First corner of the rectangle")) ); ret.push_back(ParamDesc("point2") .set_local_name(_("Point 2")) + .set_description(_("Second corner of the rectangle")) ); ret.push_back(ParamDesc("expand")