Change limits of a number field

Hello I’ve just learned how to compile blender and now I want to change it a bit :slight_smile:

I want the slider of the initial temperature to go above the hard limit of 10

How can I find where the code for those limits is located?

I want to do this because I want larger fireballs to move faster upwards like the smaller ones do and maybe increasing this value would help (I don’t want to change the simulation speed or add any fake velocity to it.):

How I personally would approach this:

Make sure you have developer tooltips turned on (Edit / Preferences / Interface / “User Tooltips” and “Python Tooltips”). Hover over that input and note that the python name includes “flow_settings.temperature”. So you could grep the source for “flow_settings” or “temperature”. But I would instead grep the text of the tooltip hint: “Temperature difference to ambient temperature”. That will take you to the definition of the property and you’ll see the limits set.


oh yeah, thanks! looking for things by the use of the description helped :slight_smile:

1 Like

If your testing determines that there is utility in changing those limits, then submit a patch. Just make sure to sell the idea in detail in the patch details, even including videos is appreciated.

1 Like

I personally think that it is a beneficial change and hopefully the way I submitted it was ok:

1 Like