Cleanup: animation: remove redundant/wrong comments #109360
|
@ -1042,7 +1042,6 @@ static int add_driver_button_invoke(bContext *C, wmOperator *op, const wmEvent *
|
|||
PropertyRNA *prop = nullptr;
|
||||
int index;
|
||||
|
||||
/* try to find driver using property retrieved from UI */
|
||||
UI_context_active_but_prop_get(C, &ptr, &prop, &index);
|
||||
|
||||
if (ptr.owner_id && ptr.data && prop && RNA_property_animateable(&ptr, prop)) {
|
||||
|
@ -1099,7 +1098,6 @@ static int remove_driver_button_exec(bContext *C, wmOperator *op)
|
|||
int index;
|
||||
const bool all = RNA_boolean_get(op->ptr, "all");
|
||||
|
||||
/* try to find driver using property retrieved from UI */
|
||||
UI_context_active_but_prop_get(C, &ptr, &prop, &index);
|
||||
|
||||
if (all) {
|
||||
|
@ -1153,7 +1151,6 @@ static int edit_driver_button_exec(bContext *C, wmOperator *op)
|
|||
PropertyRNA *prop = nullptr;
|
||||
int index;
|
||||
|
||||
/* try to find driver using property retrieved from UI */
|
||||
UI_context_active_but_prop_get(C, &ptr, &prop, &index);
|
||||
|
||||
if (ptr.owner_id && ptr.data && prop) {
|
||||
|
@ -1188,7 +1185,6 @@ static int copy_driver_button_exec(bContext *C, wmOperator *op)
|
|||
bool changed = false;
|
||||
int index;
|
||||
|
||||
/* try to create driver using property retrieved from UI */
|
||||
UI_context_active_but_prop_get(C, &ptr, &prop, &index);
|
||||
|
||||
if (ptr.owner_id && ptr.data && prop && RNA_property_animateable(&ptr, prop)) {
|
||||
|
@ -1232,7 +1228,6 @@ static int paste_driver_button_exec(bContext *C, wmOperator *op)
|
|||
bool changed = false;
|
||||
int index;
|
||||
|
||||
/* try to create driver using property retrieved from UI */
|
||||
UI_context_active_but_prop_get(C, &ptr, &prop, &index);
|
||||
|
||||
if (ptr.owner_id && ptr.data && prop && RNA_property_animateable(&ptr, prop)) {
|
||||
|
|
|
@ -2536,7 +2536,6 @@ static int insert_key_button_exec(bContext *C, wmOperator *op)
|
|||
/* flags for inserting keyframes */
|
||||
flag = ANIM_get_keyframing_flags(scene, true);
|
||||
|
||||
/* try to insert keyframe using property retrieved from UI */
|
||||
if (!(but = UI_context_active_but_prop_get(C, &ptr, &prop, &index))) {
|
||||
/* pass event on if no active button found */
|
||||
return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH);
|
||||
|
@ -2710,7 +2709,6 @@ static int delete_key_button_exec(bContext *C, wmOperator *op)
|
|||
int index;
|
||||
const bool all = RNA_boolean_get(op->ptr, "all");
|
||||
|
||||
/* try to insert keyframe using property retrieved from UI */
|
||||
if (!UI_context_active_but_prop_get(C, &ptr, &prop, &index)) {
|
||||
/* pass event on if no active button found */
|
||||
return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH);
|
||||
|
@ -2819,7 +2817,6 @@ static int clear_key_button_exec(bContext *C, wmOperator *op)
|
|||
int index;
|
||||
const bool all = RNA_boolean_get(op->ptr, "all");
|
||||
|
||||
/* try to insert keyframe using property retrieved from UI */
|
||||
if (!UI_context_active_but_prop_get(C, &ptr, &prop, &index)) {
|
||||
/* pass event on if no active button found */
|
||||
return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH);
|
||||
|
|
|
@ -279,7 +279,6 @@ static int add_keyingset_button_exec(bContext *C, wmOperator *op)
|
|||
int index = 0, pflag = 0;
|
||||
const bool all = RNA_boolean_get(op->ptr, "all");
|
||||
|
||||
/* try to add to keyingset using property retrieved from UI */
|
||||
if (!UI_context_active_but_prop_get(C, &ptr, &prop, &index)) {
|
||||
/* pass event on if no active button found */
|
||||
return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH);
|
||||
|
@ -385,7 +384,6 @@ static int remove_keyingset_button_exec(bContext *C, wmOperator *op)
|
|||
bool changed = false;
|
||||
int index = 0;
|
||||
|
||||
/* try to add to keyingset using property retrieved from UI */
|
||||
if (UI_context_active_but_prop_get(C, &ptr, &prop, &index)) {
|
||||
/* pass event on if no active button found */
|
||||
return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH);
|
||||
|
|
Loading…
Reference in New Issue