Page MenuHome

Numerical input for changing brush size, strenght or angle.
ClosedPublic

Authored by Martin Vykoukal (braffe) on Oct 20 2014, 3:14 PM.

Details

Summary

This patch adds ability to change brush parameters with keyboard, which is missing functionality from 2.4x.
Original report: T28811

Diff Detail

Repository
rB Blender

Event Timeline

Martin Vykoukal (braffe) retitled this revision from to Numerical input for changing brush size, strenght or angle..
Martin Vykoukal (braffe) updated this object.

Added a few notes, I will test functionality later.

source/blender/windowmanager/intern/wm_operators.c
3717

Minor typo here

3750

I would use the property name instead of hardcoding those in. Same below.

4158

probably "none" unit make sense better here

4382

This looks redundant. I've seen such code elsewhere (can't remember where off-hand) but I don't think this can ever happen. Have you noticed any case where it is needed?

source/blender/windowmanager/intern/wm_operators.c
4158

Can I just write: rc->num_input.unit_sys = USER_UNIT_NONE ? Or is there another better way to do that?

4382

When radial control is invoked for the first time has_numInput returns false and therefore whole condition on the line 4246 cannot be true. This is workaround for that problem. Same code is also in bevel and inset tools.

Martin Vykoukal (braffe) edited edge metadata.

Hardcoded text and typo are removed, unit system is now set to none.

Better RNA property name printing.

This revision was automatically updated to reflect the committed changes.