Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-11-02 15:31:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-11-02 15:36:22 +0300
commit2f0f08bc9817ae7e7f9390fca3644454af7d72ed (patch)
tree9e28732e9af4e62874e01afa1eb7392187fd3a3e
parentb1bf8848895bf4b35a14f89806f1f5807198e321 (diff)
Fix T92733: Error moving a completely locked bone
-rw-r--r--source/blender/editors/transform/transform_mode.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode.c b/source/blender/editors/transform/transform_mode.c
index 7f92c96d25f..0e632e5f82d 100644
--- a/source/blender/editors/transform/transform_mode.c
+++ b/source/blender/editors/transform/transform_mode.c
@@ -1085,7 +1085,14 @@ void transform_mode_init(TransInfo *t, wmOperator *op, const int mode)
case TFM_RESIZE: {
float mouse_dir_constraint[3];
if (op) {
- RNA_float_get_array(op->ptr, "mouse_dir_constraint", mouse_dir_constraint);
+ PropertyRNA *prop = RNA_struct_find_property(op->ptr, "mouse_dir_constraint");
+ if (prop) {
+ RNA_property_float_get_array(op->ptr, prop, mouse_dir_constraint);
+ }
+ else {
+ /* Resize is expected to have this property. */
+ BLI_assert(!STREQ(op->idname, "TRANSFORM_OT_resize"));
+ }
}
else {
zero_v3(mouse_dir_constraint);