[Bf-committers] Sculpt commit issue...

Ton Roosendaal ton at blender.org
Fri Jan 12 14:40:35 CET 2007


Hi,

Thanks, it looks more understandable now! :)

-Ton-

On 12 Jan, 2007, at 6:50, Nicholas Bishop wrote:

> Hi,
>
> I just yanked out all the set_sculpt_object code, so hopefully this
> issue is fixed now.
>
> Here are the two relevant commits, if you want to check this over:
> http://projects.blender.org/pipermail/bf-blender-cvs/2007-January/ 
> 008957.html
> http://projects.blender.org/pipermail/bf-blender-cvs/2007-January/ 
> 008958.html
>
> -Nicholas
>
> On 1/10/07, Ton Roosendaal <ton at blender.org> wrote:
>> Hi Nicholas,
>>
>> > For example, what the set_sculpt_object() is supposed to do and why  
>> it
>> >> was added is nowhere to find...
>> > This function was intended to provide a single location to create  
>> data
>> > specific to sculptmode meshes. Exactly what this data was has  
>> changed
>> > as the code evolved, currently it's extra connectivity information
>> > (the vertex_users array) and temporarily applying a shape key.
>>
>> That's very vague... if you want to keep track of changes that happen
>> often, then just apply such changes on each redraw.
>> If it is cpu-heavy stuff, then try to stick to existing features like
>> for depsgraph. If that doesn't work, consult me...
>>
>> > Sculptmode is like edit mode in that it edits the vertices for a
>> > specific shape key, rather than using the interpolated vertices of a
>> > particular frame. The idea with keys is that anytime the key is
>> > changed, apply the key to the mesh with key_to_mesh. If there's
>> > already a key applied to the mesh, then any sculpting that has
>> > happened should be applied to the old key before switching to the  
>> new
>> > one.
>>
>> Keys are only applied via depsgraph or by user input (set active key).
>> If you do this outside of despgraph things can go seriously wrong.  
>> I've
>> just had another bug in the tracker related to this topic. Your  
>> changes
>> actually *remove* shape info... it's very dangerous to mess with.
>>
>> -Ton-
>>
>> ---------------------------------------------------------------------- 
>> --
>> --
>> Ton Roosendaal  Blender Foundation ton at blender.org
>> http://www.blender.org
>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at projects.blender.org
>> http://projects.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
>
>
------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton at blender.org  
http://www.blender.org



More information about the Bf-committers mailing list