From 787409b2d90e356bb5a7ce9c8182a76b90f29859 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 6 Apr 2019 18:19:35 +0200 Subject: [PATCH] filter-transform: Fix description for Position, Rotation, Scale & Shear This would previously incorrectly reference descriptions that don't exist, and thus not translate correctly. --- source/filters/filter-transform.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/filters/filter-transform.cpp b/source/filters/filter-transform.cpp index e11e8dfe..9576762d 100644 --- a/source/filters/filter-transform.cpp +++ b/source/filters/filter-transform.cpp @@ -166,9 +166,9 @@ obs_properties_t* filter::transform::transform_factory::get_properties(void*) /// Position { std::pair entries[] = { - std::make_pair(ST_POSITION_X, P_DESC(ST_POSITION_X)), - std::make_pair(ST_POSITION_Y, P_DESC(ST_POSITION_Y)), - std::make_pair(ST_POSITION_Z, P_DESC(ST_POSITION_Z)), + std::make_pair(ST_POSITION_X, P_DESC(ST_POSITION)), + std::make_pair(ST_POSITION_Y, P_DESC(ST_POSITION)), + std::make_pair(ST_POSITION_Z, P_DESC(ST_POSITION)), }; for (auto kv : entries) { p = obs_properties_add_float(pr, kv.first, P_TRANSLATE(kv.first), -10000, 10000, 0.01); @@ -178,9 +178,9 @@ obs_properties_t* filter::transform::transform_factory::get_properties(void*) /// Rotation { std::pair entries[] = { - std::make_pair(ST_ROTATION_X, P_DESC(ST_ROTATION_X)), - std::make_pair(ST_ROTATION_Y, P_DESC(ST_ROTATION_Y)), - std::make_pair(ST_ROTATION_Z, P_DESC(ST_ROTATION_Z)), + std::make_pair(ST_ROTATION_X, P_DESC(ST_ROTATION)), + std::make_pair(ST_ROTATION_Y, P_DESC(ST_ROTATION)), + std::make_pair(ST_ROTATION_Z, P_DESC(ST_ROTATION)), }; for (auto kv : entries) { p = obs_properties_add_float_slider(pr, kv.first, P_TRANSLATE(kv.first), -180, 180, 0.01); @@ -190,8 +190,8 @@ obs_properties_t* filter::transform::transform_factory::get_properties(void*) /// Scale { std::pair entries[] = { - std::make_pair(ST_SCALE_X, P_DESC(ST_SCALE_X)), - std::make_pair(ST_SCALE_Y, P_DESC(ST_SCALE_Y)), + std::make_pair(ST_SCALE_X, P_DESC(ST_SCALE)), + std::make_pair(ST_SCALE_Y, P_DESC(ST_SCALE)), }; for (auto kv : entries) { p = obs_properties_add_float_slider(pr, kv.first, P_TRANSLATE(kv.first), -1000, 1000, 0.01); @@ -201,8 +201,8 @@ obs_properties_t* filter::transform::transform_factory::get_properties(void*) /// Shear { std::pair entries[] = { - std::make_pair(ST_SHEAR_X, P_DESC(ST_SHEAR_X)), - std::make_pair(ST_SHEAR_Y, P_DESC(ST_SHEAR_Y)), + std::make_pair(ST_SHEAR_X, P_DESC(ST_SHEAR)), + std::make_pair(ST_SHEAR_Y, P_DESC(ST_SHEAR)), }; for (auto kv : entries) { p = obs_properties_add_float_slider(pr, kv.first, P_TRANSLATE(kv.first), -100.0, 100.0, 0.01);