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:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-04-04 00:00:19 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-04-04 00:00:19 +0400
commita30ebdeb68f0efc5726133c521939889049b566a (patch)
tree7e0e574245c0c71aeb0370f781f58323fab75266 /source/blender/blenkernel/intern/brush.c
parent3fb74f8e59b367b4fc858d0feffda2d28fdcef37 (diff)
Fixed invalid RNA access in radial brush operators (like strength/size abjustment)
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index be73ee0656b..96b6ec357f9 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -1210,7 +1210,7 @@ static struct ImBuf *brush_gen_radial_control_imbuf(Brush *br)
void brush_radial_control_invoke(wmOperator *op, Brush *br, float size_weight)
{
- int mode = RNA_int_get(op->ptr, "mode");
+ int mode = RNA_enum_get(op->ptr, "mode");
float original_value= 0;
if(mode == WM_RADIALCONTROL_SIZE)
@@ -1229,7 +1229,7 @@ void brush_radial_control_invoke(wmOperator *op, Brush *br, float size_weight)
int brush_radial_control_exec(wmOperator *op, Brush *br, float size_weight)
{
- int mode = RNA_int_get(op->ptr, "mode");
+ int mode = RNA_enum_get(op->ptr, "mode");
float new_value = RNA_float_get(op->ptr, "new_value");
const float conv = 0.017453293;