diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-18 15:41:35 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-18 15:41:35 +0400 |
commit | 6d0f27b727fed213e602dbd664934b1c5b9ea5e4 (patch) | |
tree | 239e526a9aaa646073c624ab47de90f871128a5f /source/blender/editors | |
parent | 242a800d34deac554713bb8a77de181713b39bb9 (diff) |
Fix #29918: Set Scale does not work the second time
Issue was caused by recently added operator presets stuff.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index b67fac69745..6cf8a988571 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -2520,9 +2520,8 @@ static int set_scale_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event)) { SpaceClip *sc= CTX_wm_space_clip(C); MovieClip *clip= ED_space_clip(sc); - float dist= RNA_float_get(op->ptr, "distance"); - if(dist==0.0f) + if(!RNA_struct_property_is_set(op->ptr, "distance")) RNA_float_set(op->ptr, "distance", clip->tracking.settings.dist); return set_scale_exec(C, op); @@ -2573,9 +2572,8 @@ static int set_solution_scale_invoke(bContext *C, wmOperator *op, wmEvent *UNUSE { SpaceClip *sc= CTX_wm_space_clip(C); MovieClip *clip= ED_space_clip(sc); - float dist= RNA_float_get(op->ptr, "distance"); - if(dist==0.0f) + if(!RNA_struct_property_is_set(op->ptr, "distance")) RNA_float_set(op->ptr, "distance", clip->tracking.settings.object_distance); return set_solution_scale_exec(C, op); |