mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T81155: Keyframe.select_control_point True when unselected
Check the selection flag since BEZT_FLAG_TEMP_TAG might be set.
This commit is contained in:
parent
c79b913624
commit
8febaae9e4
2 changed files with 6 additions and 6 deletions
|
|
@ -931,17 +931,17 @@ static void rna_def_beztriple(BlenderRNA *brna)
|
|||
|
||||
/* Boolean values */
|
||||
prop = RNA_def_property(srna, "select_left_handle", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f1", 0);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f1", SELECT);
|
||||
RNA_def_property_ui_text(prop, "Handle 1 selected", "Handle 1 selection status");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop = RNA_def_property(srna, "select_right_handle", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f3", 0);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f3", SELECT);
|
||||
RNA_def_property_ui_text(prop, "Handle 2 selected", "Handle 2 selection status");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop = RNA_def_property(srna, "select_control_point", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f2", 0);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f2", SELECT);
|
||||
RNA_def_property_ui_text(prop, "Control Point selected", "Control point selection status");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
|
|
|
|||
|
|
@ -2016,17 +2016,17 @@ static void rna_def_fkeyframe(BlenderRNA *brna)
|
|||
|
||||
/* Boolean values */
|
||||
prop = RNA_def_property(srna, "select_left_handle", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f1", 0);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f1", SELECT);
|
||||
RNA_def_property_ui_text(prop, "Handle 1 selected", "Left handle selection status");
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME | NA_SELECTED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "select_right_handle", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f3", 0);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f3", SELECT);
|
||||
RNA_def_property_ui_text(prop, "Handle 2 selected", "Right handle selection status");
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME | NA_SELECTED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "select_control_point", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f2", 0);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "f2", SELECT);
|
||||
RNA_def_property_ui_text(prop, "Select", "Control point selection status");
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME | NA_SELECTED, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue