[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11257] branches/2-44-stable/blender/ source/blender/python/api2_2x/Draw.c: bugfix

Joe Eagar joeedh at gmail.com
Fri Jul 13 05:49:57 CEST 2007


Damn nau's IT department! gerr.

Here's a link, since I have no idea what'll happen if you do the form 
(since this is a mailling list post):

http://joeedh.googlepages.com/drawfixes.zip

Joe

Joe Eagar wrote:
> Campbell Barton wrote:
>> Revision: 11257
>>           
>> http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11257 
>>
>> Author:   campbellbarton
>> Date:     2007-07-12 22:14:16 +0200 (Thu, 12 Jul 2007)
>>
>> Log Message:
>> -----------
>> bugfix
>> * sliders with realtime option enabled did not have the correct event 
>> offset. (probably my fault when adding UIBlock/callbacks)
>> * callbacks could crash if they were free'd before the script ran them,
>>   solved this by using weakrefs to the python function rather then 
>> the function its self in the buttons callback value.
>>   Also store a list these weakref's in the Draw module's C file that 
>> are removed when the callback function is deallocated by python
>>   (using pythons own weakref callback) - if the weakref is not in the 
>> weakref callback list then we know it has been deallocated and can 
>> report an error that it needs to be made global.
>>
>> Tested this to work in UIBlock and normal button drawing.
>>   Some other small cleanup also.
>>   
> It'd kindof be nice if callbacks would be forced global by the API.  I 
> did this a while back for pyconstraints (in fact I was going to send 
> it to you, but I've been excruciatingly tired the last week) and it 
> seemed to work pretty well.
>
> I'll attach the raw relavent files I had.  Basically callbacks and 
> button objects are stored in a list attached per spacetype, and this 
> list is cleared before each draw event.  Also tooltips are stored in 
> button objects onw.  Unfortunately I'm way too tired to update it for 
> current svn (I have to keep up on GSoC), so um this might be less then 
> useful in its current state.
>
> Joe
>
> ------------------------------------------------------------------------
>
> Northern Arizona University's email gateway has replaced an attachment 
> associated with this mail message because that attachment is of a file 
> type that could contain a virus. As of September 20, 2004, NAU began 
> holding attachments of the types deemed most likely to contain 
> viruses. This applies to both incoming and outgoing mail. To get more 
> details on why this is being done, please read the NAU anti-virus 
> attachment filter policy.
>
> The document/attachment has been removed from this mail message, but 
> is still available to you if you wish to have it re-sent.
>
> The name of the original attachment was drawfixes.zip
>
> NAU has assigned a Reference ID of:
>
> MG2-0JL300F018J21V AUTH CODE 67074584
>
> NAU will retain a copy of the document/attachment for 120 days. Please 
> contact the original sender to determine whether they actually sent 
> the attachment to you, and if so, if they are sure that it is not a 
> virus. Please note that many viruses "spoof" the From: line, so the 
> person who appears to be the sender may not have actually sent you the 
> e-mail.
>
> After contacting the original sender, if you need a copy of the 
> document/attachment, visit the following website to have it re-sent to 
> you in its entirety:
>
> http://reads.ucc.nau.edu/checkAttachment.cgi?refNum=MG2-0JL300F018J21V&authKey=67074584 
> <http://reads.ucc.nau.edu/checkAttachment.cgi?refNum=MG2-0JL300F018J21V&authKey=67074584> 
>
>
> If you are unable to access that site by clicking on the link above, 
> you may copy-and-paste the full URL:
>
> http://reads.ucc.nau.edu/checkAttachment.cgi?refNum=MG2-0JL300F018J21V&authKey=67074584 
>
>
> into the "Address" bar of your web browser, or manually type in
>
> http://reads.ucc.nau.edu
>
> and use the Reference ID and Auth Code above to access your attachment.
>
> If you need help using this service, please contact:
>
> NAU Students: Call the Academic Computing Help Desk at (928) 523-9294 
> NAU Staff or Faculty: Call the ITS Solution Center at (928) 523-1511 
> Statewide NAU Students/Faculty/Staff: Call toll-free: 1-888-520-7215
>
> Thank you for your cooperation.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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