using wrong RNA type in sculpt update.

This commit is contained in:
Campbell Barton
2011-03-31 17:54:23 +00:00
parent 5d02ce8a7b
commit 14e94d742e

View File

@@ -2916,7 +2916,7 @@ static void sculpt_update_cache_invariants(bContext* C, Sculpt *sd, SculptSessio
ss->cache->initial_mouse[1] = 0;
}
mode = RNA_int_get(op->ptr, "mode");
mode = RNA_enum_get(op->ptr, "mode");
cache->invert = mode == BRUSH_STROKE_INVERT;
cache->alt_smooth = mode == BRUSH_STROKE_SMOOTH;