[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel/intern text.c blender/source/blender/include BIF_editaction.h blender/source/blender/python/api2_2x Main.c Text.c blender/source/blender/python/api2_2x/doc Text.py blender/source/blender/src editaction.c editconstraint.c editipo.c ...

Campbell Barton cbarton at metavr.com
Mon Mar 12 09:57:57 CET 2007


Just checks if the current space is a text space and gets/sets the textblock

Its mainly useful so a script can set text templates.

Joe Eagar wrote:
> Campbell Barton wrote:
>> campbellbarton (Campbell Barton) 2007/03/12 07:21:59 CET
>>
>>   Modified files:
>>     blender/source/blender/blenkernel/intern text.c     
>> blender/source/blender/include BIF_editaction.h     
>> blender/source/blender/python/api2_2x Main.c Text.c     
>> blender/source/blender/python/api2_2x/doc Text.py     
>> blender/source/blender/src editaction.c editconstraint.c 
>>                                editipo.c editnla.c header_ipo.c 
>>                                headerbuttons.c 
>>                                transform_conversions.c     Log:
>>   python api
>>   removed most custom add_*data* wrappers from Main.c
>>   removed makeCurrent() from Text.c (was never in a release), use 
>> "bpy.texts.active = text" now
>>   clamp new image sizes
>>   made add_empty_action accept a string rather then a blocktype since 
>> the blocktype was only being used to choose one of 3 strings anyway.
>>     
> How does that work?  The active text is per-area.  Does this just set 
> all text areas to use this text?
> Perhaps this should be part of a possible space area api.
> 
> Joe
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
> 


-- 
See MetaVR Visuals Used at the Combat Studies Institute
http://www.metavr.com/casestudies/baghdadviews.html

Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241


More information about the Bf-committers mailing list