[Bf-committers] Defaults Patch (Redux)

Damir Prebeg blend.factory at gmail.com
Mon Oct 29 22:53:32 CET 2012


Would it be possible to create some overloaded ui_def_but, uiDefBut
etc. so they include that forgotten parameter named for eg. "float
dfault"? Instead of creating hundreds of constants, in time all old
buttons would be changed and new would be created with that new
overloaded version. For eg:

instead of:

but = uiDefButF(block, NUM, B_OBJECTPANELMEDIAN, "X:", 0, yi -= buth,
200, buth, &(tfp->ve_median[LOC_X]), -lim, lim, 10,
RNA_TRANSLATION_PREC_DEFAULT, "");

would be:

but = uiDefButF(block, NUM, B_OBJECTPANELMEDIAN, "X:", 0, yi -= buth,
200, buth, &(tfp->ve_median[LOC_X]), 0.0, -lim, lim, 10,
RNA_TRANSLATION_PREC_DEFAULT, "");


More information about the Bf-committers mailing list