[Bf-committers] a quick question

Brecht Van Lommel brecht at blender.org
Tue Jun 1 12:17:10 CEST 2010


Changing the default .blend also would not be enough, since existing
.blend files still wouldn't be converted. Here's the code you can add
at the end of do_versions in readfile.c.

for (brush= main->brush.first; brush; brush= brush->id.next)
    if(brush->detail == 0.0f)
        brush->detail = 0.25f;

Brecht.

On Mon, May 31, 2010 at 9:58 PM, Diego B <bdiego at gmail.com> wrote:
> If it's the default value, before change the default blend, you can
> try with a do_versions.
> Change the default blend file always come with problems ;)
>
> On Mon, May 31, 2010 at 4:51 PM, Daniel Salazar - 3Developer.com
> <zanqdo at gmail.com> wrote:
>> BTW this should be done very carefully, if you want you can just
>> commit like it is and I will fix the defaults later?
>>
>> cheers
>>
>> Daniel Salazar
>> www.3developer.com
>>
>>
>>
>> On Mon, May 31, 2010 at 1:49 PM, Daniel Salazar - 3Developer.com
>> <zanqdo at gmail.com> wrote:
>>> Hi Raul, those are actually saved in the B.blend.c file
>>> (/blender/source/blender/editors/datafiles and you would need to
>>> generate a new compilable default blend file using the datatoc.py
>>> script included in release
>>>
>>> pura vida!
>>>
>>> Daniel Salazar
>>> www.3developer.com
>>>
>>>
>>>
>>> On Mon, May 31, 2010 at 1:45 PM, Raul Fernandez Hernandez
>>> <raulf at info.upr.edu.cu> wrote:
>>>> Hi all :)
>>>>
>>>>  I'm about to commit to my branch the Unlimited clay feature for
>>>> sculpting, but I'm getting troubles trying to set up the default value
>>>> for the new property brush.detail, in the RNA the range is 0.05-1.f where
>>>> 0.05 subdivide a lot the mesh and 1.0 is quite rough so the default vaue
>>>> should be 0.25
>>>>  but I could not find the place where the brush get its default value
>>>>
>>>> add_brush() only works with newly created brushes, not the ones that exite
>>>> when Blender start
>>>>
>>>>                     If I get a quick answer I could commit by today
>>>>
>>>>                         Thanks in advance   Raul
>>>>
>>>> _______________________________________________
>>>> Bf-committers mailing list
>>>> Bf-committers at blender.org
>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>>
>>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list