UI: Edge Slide Comments

Comments explaining why some properties might be not set in some
circumstances.

Pull Request: https://projects.blender.org/blender/blender/pulls/122172
This commit is contained in:
Harley Acheson
2024-05-23 17:51:16 +02:00
committed by Harley Acheson
parent b49165fc61
commit 5a643cfa74

View File

@@ -922,6 +922,9 @@ static void initEdgeSlide(TransInfo *t, wmOperator *op)
bool use_clamp = true;
if (op) {
PropertyRNA *prop;
/* The following properties could be unset when transitioning from this
* operator to another and back. For example pressing "G" to move, and
* then "G" again to go back to edge slide. */
prop = RNA_struct_find_property(op->ptr, "single_side");
use_double_side = (prop) ? !RNA_property_boolean_get(op->ptr, prop) : true;
prop = RNA_struct_find_property(op->ptr, "use_even");