Campbell Barton
ac71783e8d
last commit had a typo, also adjusted teh and colour instances
2008-05-12 21:12:10 +00:00
Maxime Curioni
c785d7493e
soc-2008-mxcurioni: merged changes to revision 14798, compilation works for rendering/ directry. Still needs to figure out how to compile on non-Unix machines.
2008-05-11 20:28:47 +00:00
Joshua Leung
2d96d1189f
Fix compiler warnings in particle.c and editface.c.
...
* unitialised/unused vars
2008-05-11 12:57:01 +00:00
Stephen Swaney
aa471f6a80
fix compiler warnings.
...
tsk tsk - implicit declaration of functions.
2008-05-11 06:11:23 +00:00
Stephen Swaney
a2c10ff1e7
Initial commit for BPy Particle patch #8557 from Cedric Paille
...
Thanks, Cedric!
*** WARNING **** This is a Work In Progress *** Warning ****
2008-05-11 04:15:21 +00:00
Campbell Barton
f115a5f789
fix for [ #6104 ] CR generates space at String Creation
...
replace windows line endings (\r\n) with \n rather then inserting spaces.
2008-05-09 17:37:01 +00:00
Campbell Barton
cfcdf36cd8
fix for [ #10330 ] Can't import packages or modules from a user defined script path in 2.46rc3, works in 2.45 (Windows)
2008-05-08 22:07:00 +00:00
Maxime Curioni
64e4a3ec9a
soc-2008-mxcurioni: merged changes to revision 14747, cosmetic changes for source/blender/freestyle
2008-05-08 19:16:40 +00:00
Campbell Barton
18b20396bc
this script isnt needed anymore thanks to stivs and gsr
2008-05-08 07:33:20 +00:00
Stephen Swaney
12715ec0fa
more shell script tweaking.
...
Thanks to gsrb3d for hints.
2008-05-07 22:46:20 +00:00
Stephen Swaney
1c7c37deb7
modify script to use long opts; --name vs -n, for example.
...
This makes epy_docgen.sh compatible with epy_docgen-3.sh.
I am not sure why we would need both scripts. Perhaps
someone with epdoc version 3 can test.
2008-05-07 21:21:15 +00:00
Campbell Barton
5e493eeb19
Setting frame in python allowed negative numbers (was casting to a short with no clamping!)
...
disable capslock option isnt used anywhere.
2008-05-07 07:57:18 +00:00
Campbell Barton
c0d981f6db
patches
...
[#10529 ] -p command line option fix
[#8844 ] Glossy controls Python API
2008-05-06 18:57:24 +00:00
Campbell Barton
4255f3c7ab
made python add mesh module respect blenders user settings for editmode and view align.
...
added sys.cleanpath() was a patch in the tracker but blender's internal path cleaning is now more general and can be used from
python.
2008-05-06 17:54:55 +00:00
Maxime Curioni
ec90691384
merge to 14689, Freestyle library changes, SConscript start
2008-05-05 16:56:44 +00:00
Campbell Barton
6c05a92fe1
missed out on some BLI_convertstringcode's, also found that playing relative quicktime paths from the python api never worked, was using the 'Scene' type cast to a char.
2008-05-04 15:02:48 +00:00
Campbell Barton
110f927c63
Changed frame numbering to only alter hashes if they are in the filename (not the directory name) to fix bug [ #10566 ] File Open Dialog replaces '#' with '0' in directory names.
...
removed frame numbering from BLI_convertstringcode into its own function (BLI_convertstringframe), many uses of BLI_convertstringcode were passing dummy frames values anyway.
in cases where adding the current frame number to a filename is needed run BLI_convertstringframe(...) after BLI_convertstringcode(...)
There are some cases Im not sure BLI_convertstringframe is needed, these have been commented as todo, but at least have the same functionality they used to.
2008-05-04 09:41:15 +00:00
Willian Padovani Germano
9ea5788c37
== PyNodes ==
...
Bug #10104 reported by bebraw: missing check for how many node sockets were being created by a pynode script. Too many (more than MAX_SOCKET == 64) would crash Blender.
http://projects.blender.org/tracker/?func=detail&atid=125&aid=10104&group_id=9
Notes: moved the MAX_SOCKET define from node.c to BKE_node.h so I could use it in Node.c. Also improved error reporting in pynodes when errors occur in the init stage.
Thanks Juho (bebraw), Tom (assigned the bug to me) and Brecht (mentioned the MAX_SOCKET define).
2008-05-01 22:28:18 +00:00
Ken Hughes
a87d82023a
Add library.name attribute, which returns the actual library name used by blender (this may be different from the library.filename attribute).
2008-05-01 18:52:26 +00:00
Nathan Letwory
0b3118980f
* add missing int rel to BPy_Library and BPy_LibraryData
2008-05-01 08:11:08 +00:00
Ken Hughes
3d2758a3bd
Add support to bpy.library module for relative paths.
2008-05-01 05:52:35 +00:00
Campbell Barton
723397bb91
running scripts in background mode would crash blender when checking a scriptspace areas
2008-04-28 21:54:03 +00:00
Maxime Curioni
f12cf0e250
Merged changes from trunk to soc-2008-mxcurioni, to revision 14603
2008-04-28 19:21:51 +00:00
Maxime Curioni
812a0eb1fb
Merged changes from trunk to soc-2008-mxcurioni: svn merge -r 14534:14595 https://svn.blender.org/svnroot/bf-blender/trunk/blender/
2008-04-28 16:21:26 +00:00
Campbell Barton
c6554898cc
fix for [ #9651 ] raw_export.py tooltip outdated?
...
own error, bpath looper was trying to free NULL pointer,
added fromOrig to python mtex api
made FromOrig and FromDupli tooltips be understandable
2008-04-28 16:09:17 +00:00
Joshua Leung
1b45506f0a
Compiler warning fixes:
...
* in scene.c in blenkernel, set_last_seq (defined in src - editseq.c) is called... this may/may not need some stubs for game-engine stuff
* removed unused vars due to old particle-effects stuff
2008-04-28 00:40:38 +00:00
Campbell Barton
57c1fbe557
remove old particle system.
...
also removed quat, dquat, and sumohandle from the Object struct since they aren't used anywhere.
2008-04-27 18:26:20 +00:00
Campbell Barton
c8376869b1
BLI_split_dirfile was being used in cases it should not have been,
...
Added BLI_split_dirfile_basic, that only splits the path into directory and file. without checking the dir exists or creating it, without changing the original string that is passed to it.
2008-04-26 13:08:57 +00:00
Willian Padovani Germano
3a4f23aa78
== PyNodes ==
...
1) Added support for a var called "__node__" in pynode scripts, that can be used to point to the desired pynode object, to make sure it is chosen.
2) Fixed a semi-obscure crash that could happen when reparsing a pynode script that was used by multiple nodes in different scenes. Memory corruption would happen if the reparsing failed during the recreation of the pynode object, not when executing it.
2008-04-25 16:35:52 +00:00
Campbell Barton
feb440c2cd
added sequencer paths to bpath iterator, This needed to use get/set filename callbacks internally because the sequencer stores dir/file separately.
...
This means when moving large projects with many images/videos/sounds is possible with 'File, External Data, Find Missing Files'.
- needed so we can put peach animatic, glrenders & testrenders on the dvd.
also datatoc.c - brecht's fixes from apricot.
2008-04-25 16:09:16 +00:00
Willian Padovani Germano
b0db68ccb0
== PyNodes ==
...
Finishing a few needed things before the release: changed ShadeInput vars access from a single getAttribute function to individual methods, one for each var, for faster access (needed, since these are accessed over and over during rendering).
Very repetitive code, so I used a few macros to write it. Compiles w/o warnings here (linux, gcc 4.3.0), please report any problems.
This is just an internal change, the Python API is still the same.
2008-04-23 20:06:25 +00:00
Campbell Barton
4f49a3b906
added ipo script template from blenderartists forTe, made scripts refresh on load factory settings and replaced elysiun with blenderartist.org in headers
2008-04-23 14:04:05 +00:00
Campbell Barton
65ca9c204c
bpy sequencer api can add color strips, changing strip length wasnt re-allocating stripdata which was causing memory free errors, added proxy options, directort read/write and some more flags.
2008-04-21 22:17:49 +00:00
Campbell Barton
be0b8ccfaa
Used GET_INT_FROM_POINTER to get rid of many warnings that only occurred with 64bit os's
...
Also use Py_ssize_t which we might need to define for older python's
2008-04-17 21:14:55 +00:00
Chris Want
5d0a207ecb
Patch from GSR that a) fixes a whole bunch of GPL/BL license
...
blocks that were previously missed; and b) greatly increase my
ohloh stats!
2008-04-16 22:40:48 +00:00
Campbell Barton
67e2d05dcd
Ipo View Option - Loc View Area - stops using each ipo's view area when changing ipo's.
2008-04-15 14:15:56 +00:00
Campbell Barton
6b81045bc3
* Made Armature auto name L/R, Top/Bot, Fr/Bk remove existing, known extensions.
...
* Added fromDupli MTex setting to python api
* Shift+RMB was setting the active face in the UV view.
* Armature scripts menu was broken
2008-04-13 15:14:32 +00:00
Brecht Van Lommel
36288dabb8
Fix for render scemode in the python api, forgot to commit this file
...
when i changed it from a short to an int.
2008-04-10 11:34:36 +00:00
Campbell Barton
235f793f28
Made aspx/y into floats so we can render precise regions (for apricot terrain baking)
2008-04-09 15:46:26 +00:00
Stephen Swaney
d30cc5f2d8
API Doc for new Object attributes trackAxis and upAxis.
...
contributed by Cedric Paille. Thanks!
Fix broken indentation in Constraint doc.
2008-04-09 07:27:37 +00:00
Stephen Swaney
77639a5cde
Doh! Typo - replace [Y] with [Z].
2008-04-07 14:16:26 +00:00
Campbell Barton
7c15baff16
added an optional arg for object.getBoundBox(worldspace) - so you can get localspace boundboxes, this is useful when getting a dipli's boundbox where the objects worldspace matrix has no useful meaning.
2008-04-07 13:16:56 +00:00
Campbell Barton
66e74e6057
annoyance with python api, Blender.Library.Datablocks should always return an empty list, rather then None when there is no datablocks.
2008-04-07 10:12:21 +00:00
Campbell Barton
e4d25da698
fix for [ #6342 ] Collada 1.4 import (of perhaps corrupt collada files) leads to a complete crash of Blender 2.43 under Windows XP
...
NMesh wasnt checking 16max material limit, also made collada import work with the user scripts dir.
2008-04-06 20:13:14 +00:00
Stephen Swaney
6e5984ce39
Python API - read access to Track and Up axis attributes for Object.
...
Part of Patch 8557. Contributed by Cedric Paille. Thanks!
Still waiting for API doc for new attributes. Finger is poised
over Revert button...
2008-04-05 21:33:06 +00:00
Stephen Swaney
d0004bed8c
fix compiler warning: comparison between signed and unsigned
2008-04-05 14:49:41 +00:00
Campbell Barton
8fdfd4cc4c
PyAPI - setting a buttons string value crashed. suspect this is a 64bit problem since replacing the string length of int, with Py_ssize_t or long prevented the crash. worked around the problem by removing the PyString_AsStringAndSize command.
...
wizard_curve2tree - removing id properties didnt work. exit button used a callback it didnt need to.
2008-04-04 23:12:20 +00:00
Brecht Van Lommel
4f6493d1a7
Fix for bug #8629 : python object.boundingBox was not in worldspace
...
anymore for meshes due to a bugfix. The python code assumed ob->bb
was in worldspace while it isn't, also meant metaball bounding boxes
were wrong.
2008-04-01 10:15:39 +00:00
Campbell Barton
009e5d00cb
TimeLine PyType was not getting initialized, causing auto-completion in the interactive console to crash.
2008-03-31 14:29:40 +00:00
Andrea Weikert
d9de141077
== bugfix ==
...
fix for [#6950 ] Blender crashes when .blog file top line is 160 characters or more
- made sure BLI_convertstringcode doesn't return more than 240 chars
- went through all callers and fixed places where string passed to BLI_convertstringcode was too short
- TODO: look into increasing sample->name and sound->name too, I prevented crashes, but filename might get shortened.
2008-03-30 16:18:01 +00:00