[Bf-blender-cvs] [1c633de] master: 2D Stabilizer: Use more consistent RNA naming for properties
Sergey Sharybin
noreply at git.blender.org
Wed Aug 17 10:37:59 CEST 2016
Commit: 1c633dea1ca48b05057657f90ce29f9159af95b6
Author: Sergey Sharybin
Date: Wed Aug 17 10:36:38 2016 +0200
Branches: master
https://developer.blender.org/rB1c633dea1ca48b05057657f90ce29f9159af95b6
2D Stabilizer: Use more consistent RNA naming for properties
Annoying i did not notice this originally, but for RNA we need to keep
things as much consistent as possible.
===================================================================
M release/scripts/startup/bl_ui/space_clip.py
M source/blender/makesrna/intern/rna_tracking.c
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index afa9db1..5f3b9c7 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -965,8 +965,8 @@ class CLIP_PT_stabilization(CLIP_PT_reconstruction_panel, Panel):
layout.separator()
layout.label(text="Expected Position")
- layout.prop(stab, "target_pos", text="")
- layout.prop(stab, "target_rot")
+ layout.prop(stab, "target_position", text="")
+ layout.prop(stab, "target_rotation")
if stab.use_autoscale:
layout.label(text="Auto Scale Factor: %5.3f" % (1.0 / stab.target_zoom))
else:
diff --git a/source/blender/makesrna/intern/rna_tracking.c b/source/blender/makesrna/intern/rna_tracking.c
index 0591c65..4ef418d 100644
--- a/source/blender/makesrna/intern/rna_tracking.c
+++ b/source/blender/makesrna/intern/rna_tracking.c
@@ -1750,7 +1750,7 @@ static void rna_def_trackingStabilization(BlenderRNA *brna)
RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, "rna_tracking_flushUpdate");
/* target position */
- prop = RNA_def_property(srna, "target_pos", PROP_FLOAT, PROP_TRANSLATION);
+ prop = RNA_def_property(srna, "target_position", PROP_FLOAT, PROP_TRANSLATION);
RNA_def_property_array(prop, 2);
RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, 3); /* increment in steps of 0.01 and show 3 digit after point */
RNA_def_property_float_sdna(prop, NULL, "target_pos");
@@ -1758,7 +1758,7 @@ static void rna_def_trackingStabilization(BlenderRNA *brna)
RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL);
/* target rotation */
- prop = RNA_def_property(srna, "target_rot", PROP_FLOAT, PROP_ANGLE);
+ prop = RNA_def_property(srna, "target_rotation", PROP_FLOAT, PROP_ANGLE);
RNA_def_property_float_sdna(prop, NULL, "target_rot");
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, 3);
More information about the Bf-blender-cvs
mailing list