X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Flayer.h;h=a867197907b6c208f37071153f54d4610b4d9043;hb=d43ed398fd84b93b96eb91d91dafdf65c80537e6;hp=19faddb56432c6717d6794e3fa60f1a41c87a0fe;hpb=cf2dbea77c392e29f5c359819977a8ba63667e42;p=synfig.git diff --git a/synfig-core/src/synfig/layer.h b/synfig-core/src/synfig/layer.h index 19faddb..a867197 100644 --- a/synfig-core/src/synfig/layer.h +++ b/synfig-core/src/synfig/layer.h @@ -93,7 +93,7 @@ if (param==y && value.same_type_as(x)) \ { \ value.put(&x); \ - set_param_static(#x,value.get_static()); \ + set_param_static(y,value.get_static()); \ return true; \ } @@ -129,7 +129,7 @@ //! This is used as the category for layer book entries which represent aliases of layers. //! It prevents these layers showing up in the menu. #define CATEGORY_DO_NOT_USE "Do Not Use" - +/* //! x=variable name, y=static bool value #define SET_STATIC(x,y) \ if(param==#x && x ## _static != y) \ @@ -141,7 +141,7 @@ #define GET_STATIC(x) \ if(param==#x) \ return x ## _static; \ - +*/ /* === T Y P E D E F S ===================================================== */ @@ -273,7 +273,6 @@ private: float z_depth; //! True if zdepth is not affected when in animation mode - //bool z_depth_static; typedef std::map Sparams; Sparams static_params; @@ -472,6 +471,7 @@ public: virtual bool set_param_static(const String ¶m, const bool x); virtual bool get_param_static(const String ¶m) const; + virtual void fill_static(Vocab vocab); //! Sets a list of parameters virtual bool set_param_list(const ParamList &);