[Bf-blender-cvs] [9027265f6ac] asset-browser-poselib: Fix uninitialized variable use

Julian Eisel noreply at git.blender.org
Mon Apr 26 16:46:38 CEST 2021


Commit: 9027265f6ac1b2dd3b17394bcfa6350e04a73b05
Author: Julian Eisel
Date:   Mon Apr 26 16:45:50 2021 +0200
Branches: asset-browser-poselib
https://developer.blender.org/rB9027265f6ac1b2dd3b17394bcfa6350e04a73b05

Fix uninitialized variable use

Mistake in dc009dd6c1c1.

===================================================================

M	source/blender/editors/armature/pose_lib_2.c

===================================================================

diff --git a/source/blender/editors/armature/pose_lib_2.c b/source/blender/editors/armature/pose_lib_2.c
index f11b0348d4b..b636a65c790 100644
--- a/source/blender/editors/armature/pose_lib_2.c
+++ b/source/blender/editors/armature/pose_lib_2.c
@@ -680,15 +680,15 @@ void POSELIB_OT_blend_pose_asset(wmOperatorType *ot)
   ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING;
 
   /* Properties: */
-  RNA_def_float_factor(ot->srna,
-                       "blend_factor",
-                       0.0f,
-                       0.0f,
-                       1.0f,
-                       "Blend Factor",
-                       "Amount that the pose is applied on top of the existing poses",
-                       0.0f,
-                       1.0f);
+  prop = RNA_def_float_factor(ot->srna,
+                              "blend_factor",
+                              0.0f,
+                              0.0f,
+                              1.0f,
+                              "Blend Factor",
+                              "Amount that the pose is applied on top of the existing poses",
+                              0.0f,
+                              1.0f);
   /* Blending should always start at 0%, and not at whatever percentage was last used. This RNA
    * property just exists for symmetry with the Apply operator (and thus simplicity of the rest of
    * the code, which can assume this property exists). */



More information about the Bf-blender-cvs mailing list