Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-02 01:34:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-02 01:34:59 +0300
commit1b51c34e8bcfcc4fb618e2a456bd641045886d51 (patch)
tree3a4f3229a027acbe94a9bd1cb3d5f1ed83557791 /source/blender/editors/manipulator_library
parent4afc94080c53d6191a73fbddafd40d3d4c00574c (diff)
Manipulator: correct cage-2d scale update
Diffstat (limited to 'source/blender/editors/manipulator_library')
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
index c3e42c74488..ea868e6b2b3 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
@@ -379,13 +379,13 @@ static bool manipulator_rect_transform_get_prop_value(
PropertyType type = RNA_property_type(mpr_prop->prop);
if (type != PROP_FLOAT) {
- fprintf(stderr, "Rect Transform manipulator can only be bound to float properties");
+ fprintf(stderr, "Rect Transform manipulator can only be bound to float properties\n");
return false;
}
else {
if (STREQ(mpr_prop->type->idname, "offset")) {
if (RNA_property_array_length(&mpr_prop->ptr, mpr_prop->prop) != 2) {
- fprintf(stderr, "Rect Transform manipulator offset not only be bound to array float property");
+ fprintf(stderr, "Rect Transform manipulator offset not only be bound to array float property\n");
return false;
}
RNA_property_float_get_array(&mpr_prop->ptr, mpr_prop->prop, value);
@@ -397,7 +397,7 @@ static bool manipulator_rect_transform_get_prop_value(
}
else {
if (RNA_property_array_length(&mpr_prop->ptr, mpr_prop->prop) != 2) {
- fprintf(stderr, "Rect Transform manipulator scale not only be bound to array float property");
+ fprintf(stderr, "Rect Transform manipulator scale not only be bound to array float property\n");
return false;
}
RNA_property_float_get_array(&mpr_prop->ptr, mpr_prop->prop, value);
@@ -538,8 +538,8 @@ static void manipulator_rect_transform_property_update(wmManipulator *mpr, wmMan
}
else if (STREQ(mpr_prop->type->idname, "scale")) {
float scale[2];
- RNA_float_get_array(mpr->ptr, "scale", scale);
manipulator_rect_transform_get_prop_value(mpr, mpr_prop, scale);
+ RNA_float_set_array(mpr->ptr, "scale", scale);
}
else {
BLI_assert(0);