forked from bartvdbraak/blender
code cleanup: use frame as a prefix for rna properties
This commit is contained in:
parent
42558f83df
commit
8771c9e2fe
@ -2606,7 +2606,7 @@ static void node_composit_buts_trackpos(uiLayout *layout, bContext *C, PointerRN
|
||||
uiItemR(layout, ptr, "position", 0, NULL, ICON_NONE);
|
||||
|
||||
if (node->custom1 == 2) {
|
||||
uiItemR(layout, ptr, "relative_frame", 0, NULL, ICON_NONE);
|
||||
uiItemR(layout, ptr, "frame_relative", 0, NULL, ICON_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -187,7 +187,7 @@ static void rna_def_moviecliUser(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Movie Clip User",
|
||||
"Parameters defining how a MovieClip datablock is used by another datablock");
|
||||
|
||||
prop = RNA_def_property(srna, "current_frame", PROP_INT, PROP_TIME);
|
||||
prop = RNA_def_property(srna, "frame_current", PROP_INT, PROP_TIME);
|
||||
RNA_def_property_int_sdna(prop, NULL, "framenr");
|
||||
RNA_def_property_range(prop, MINAFRAME, MAXFRAME);
|
||||
RNA_def_property_ui_text(prop, "Current Frame", "Current frame number in movie or image sequence");
|
||||
|
@ -3839,7 +3839,7 @@ static void def_cmp_trackpos(StructRNA *srna)
|
||||
RNA_def_property_ui_text(prop, "Position", "Which marker position to use for output");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
|
||||
|
||||
prop = RNA_def_property(srna, "relative_frame", PROP_INT, PROP_NONE);
|
||||
prop = RNA_def_property(srna, "frame_relative", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "custom2");
|
||||
RNA_def_property_ui_text(prop, "Frame", "Frame to be used for relative position");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
|
||||
|
@ -498,7 +498,7 @@ static void rna_Scene_framelen_update(Main *UNUSED(bmain), Scene *scene, Pointer
|
||||
}
|
||||
|
||||
|
||||
static void rna_Scene_current_frame_set(PointerRNA *ptr, int value)
|
||||
static void rna_Scene_frame_current_set(PointerRNA *ptr, int value)
|
||||
{
|
||||
Scene *data = (Scene *)ptr->data;
|
||||
|
||||
@ -4300,7 +4300,7 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "r.cfra");
|
||||
RNA_def_property_range(prop, MINAFRAME, MAXFRAME);
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Scene_current_frame_set", NULL);
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Scene_frame_current_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "Current Frame",
|
||||
"Current Frame, to update animation data from python frame_set() instead");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_FRAME, "rna_Scene_frame_update");
|
||||
|
Loading…
Reference in New Issue
Block a user