Actually we only have a Python API that allows to change the max jumps value.
The patch also allows non programmers to change the maximum numbers of jumps.
Details
Details
- Reviewers
Campbell Barton (campbellbarton) Sybren A. Stüvel (sybren) Porteries Tristan (panzergame) Jorge Bernal (lordloki) Mitchell Stokes (moguri) Angus Hollands (agoose77) - Commits
- rBS3dd83b533a03: BGE: Adding a Max Jumps value to the character physic window
rB3dd83b533a03: BGE: Adding a Max Jumps value to the character physic window
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Looks good to me. I don't know if we really need to use an integer for the max jump count (especially since you limit the property to 100, which can fit in a char). Is the UI limit a hard or soft limit? In other words could I type in something over 100? A lower soft limit (say 5 or 10) might make the slider respond smother for typical use cases.
Comment Actions
It is a hard limit. Maybe, something like:
RNA_def_property_range(prop, 1, INT_MAX); RNA_def_property_ui_range(prop, 1, 100, 1, 1);
it would be better.
Other than this, it looks ok to me.
This comment was removed by Angus Hollands (agoose77).
Comment Actions
I don't understand your sentence. Which Python API? This is a patch for the UI there is no API. Also it is impossible to sett an invalid value via UI.