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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-02-06 19:46:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-02-06 19:47:06 +0300
commit8ab1188e395409eb0fd72a946a691482d660b7c6 (patch)
tree31ef50c9088c5971df6f676d4371c77200c1ed4a /source
parent0e049e88e2169b831bb829bbff358b593ed228b8 (diff)
rename SIPO_AUTOVIEW -> SIPO_AUTO_VIEW_SELECTED
The term auto-view on its own isn't very meaningful
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_graph/graph_select.c5
-rw-r--r--source/blender/makesdna/DNA_space_types.h2
-rw-r--r--source/blender/makesrna/intern/rna_space.c6
3 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c
index 136bcb6fb05..46a39806ad7 100644
--- a/source/blender/editors/space_graph/graph_select.c
+++ b/source/blender/editors/space_graph/graph_select.c
@@ -70,8 +70,9 @@ static void graphkeys_auto_view(bContext *C)
{
const SpaceIpo *sipo = CTX_wm_space_graph(C);
- if (sipo && sipo->flag & SIPO_AUTOVIEW)
+ if (sipo && sipo->flag & SIPO_AUTO_VIEW_SELECTED) {
WM_operator_name_call(C, "GRAPH_OT_view_selected", WM_OP_INVOKE_DEFAULT, NULL);
+ }
}
/* ******************** Deselect All Operator ***************************** */
@@ -875,7 +876,7 @@ static void select_moreless_graph_keys(bContext *C, bAnimContext *ac, short mode
ked.data = NULL;
/* only do auto view if a bezier point is selected */
- if (sipo->flag & SIPO_AUTOVIEW) {
+ if (sipo->flag & SIPO_AUTO_VIEW_SELECTED) {
const FCurve *fcu = (FCurve *)ale->key_data;
const BezTriple *bezt;
unsigned int i;
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index 4767f05c89b..165f6113b6d 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -371,7 +371,7 @@ typedef enum eGraphEdit_Flag {
SIPO_NORMALIZE = (1 << 14),
SIPO_NORMALIZE_FREEZE = (1 << 15),
/* automatically set view on selection */
- SIPO_AUTOVIEW = (1 << 16),
+ SIPO_AUTO_VIEW_SELECTED = (1 << 16),
} eGraphEdit_Flag;
/* SpaceIpo->mode (Graph Editor Mode) */
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 4017ce683b7..382ed358e12 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -3004,9 +3004,9 @@ static void rna_def_space_graph(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Has Ghost Curves", "Graph Editor instance has some ghost curves stored");
/* auto view */
- prop = RNA_def_property(srna, "use_auto_view", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "flag", SIPO_AUTOVIEW);
- RNA_def_property_ui_text(prop, "Use Auto View", "Automatically adjust view based on selection");
+ prop = RNA_def_property(srna, "use_auto_view_selected", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", SIPO_AUTO_VIEW_SELECTED);
+ RNA_def_property_ui_text(prop, "Auto View Selected", "Automatically adjust view based on selection");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_GRAPH, NULL);
/* nromalize curves */