Fix #131045: Wrong UI range for edit bone head and tail
The issues was simply that the UI range for the RNA property was set to 0. Fixed by setting to `-FLT_MAX`. Pull Request: https://projects.blender.org/blender/blender/pulls/131099
This commit is contained in:
committed by
Christoph Lendenfeld
parent
c69b107a28
commit
e52cb5e24b
@@ -1848,7 +1848,7 @@ static void rna_def_edit_bone(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "head", PROP_FLOAT, PROP_TRANSLATION);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "head");
|
||||
RNA_def_property_ui_range(prop, 0, FLT_MAX, 10, RNA_TRANSLATION_PREC_DEFAULT);
|
||||
RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 10, RNA_TRANSLATION_PREC_DEFAULT);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Head", "Location of head end of the bone");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
@@ -1856,7 +1856,7 @@ static void rna_def_edit_bone(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "tail", PROP_FLOAT, PROP_TRANSLATION);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "tail");
|
||||
RNA_def_property_ui_range(prop, 0, FLT_MAX, 10, RNA_TRANSLATION_PREC_DEFAULT);
|
||||
RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 10, RNA_TRANSLATION_PREC_DEFAULT);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Tail", "Location of tail end of the bone");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
||||
Reference in New Issue
Block a user