Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-02-23remove unused functions,Campbell Barton
note: BPY_class_validate() could come in handy later if we need to check classes for properties/functions but for now there is no point in keeping it in.
2011-02-22SVN maintenance.Guillermo S. Romero
2011-02-22blender as module - workaround for not knowing __file__ when the module is ↵Campbell Barton
initialized.
2011-02-22feature back from 2.4x where a python error moves the cursor to the error ↵Campbell Barton
line, added moving to exact column for syntax errors too.
2011-02-22last commit used py3.2 function, inline for py3.1Campbell Barton
2011-02-22pyapi, use direct access to the frame rather then python attributes.Campbell Barton
2011-02-22make doc generation close files (py3.2 complains about this),Campbell Barton
minor formatting changes for C docstrings.
2011-02-21build python module without binreloc, add dummy argv[0] to initialize bprogname.Campbell Barton
2011-02-21Missed this in battle against BLO vs MEM storm.Nathan Letwory
2011-02-21I swear, it was just an innocence change in guardedalloc!Nathan Letwory
The butterfly wing flap, causing a nice storm in the rest of blender. Now all dependencies should point ok again. CMakers, do double-test.
2011-02-21doxygen: entry for gpu, modifiers, nodes, python and renderNathan Letwory
2011-02-21Experimental option to build blender as a python module, rather then blender ↵Campbell Barton
embedding python. CMake build option WITH_PYTHON_MODULE, will build ./bin/bpy.so This allows 'bpy' to be imported from python or other applications/IDE's which embed python, eg: python -c "import bpy ; bpy.ops.render.render(write_still=True)" This runs in background mode and has similar restrictions to running a script: blender --background --python test.py TODO: - install to site-packages with blender scripts - add support for imp.reload()
2011-02-19set main() argv functions to be const char *Campbell Barton
also set minimum cmake version to 2.8
2011-02-18- clear some warningsCampbell Barton
- rename layout.operator_enums -> operator_enum (since we have operator_menu_enum, only called in 4 places)
2011-02-18py api was raising SystemError exception incorrectly, this is intended for ↵Campbell Barton
internal interpreter problems. Replace most with RuntimeError.
2011-02-17Change to how python classes are initialized when blender calls them.Campbell Barton
Annoyance was that operators that defined and __init__ function would need to do... def __init__(self, another_self): .... py/rna was calling the class directly with PyObject_Call() but needed to pass the pre-allocated object only so __init__() would run . This works OK internally but becomes messy since __new__ and __init__ always get the same args there was no way to avoid a superfluous self argument to __init__.
2011-02-17error case not being handled when calling python classes from RNACampbell Barton
2011-02-16rename IDPropertyGroup to PropertyGroupCampbell Barton
also renamed IDProperty to PropertyGroupItem (these are not referenced for common usage and we already have 'Property' defined).
2011-02-16fix [#26098] python API: quaternion.rotate never seems to work.Campbell Barton
2011-02-16Ugly hack to get PoseLib UI working ok (problem mentioned in log forJoshua Leung
r34883). Full description: When defining an operator button in the UI layout code, trying to set the value for such an operator's enum properties, where said enum uses a dynamically generated list of items (which depends on using context info), will "fail". No context info will be passed to the callbacks used to generate this list of items, as PROP_ENUM_NO_CONTEXT is still set on the operator properties (it seems these will only get cleared when the operator actually runs, which is far too late already for this usage) so RNA_property_enum_items() will pass NULL instead of a context pointer *even* when one exists! I'm not sure of why we even need this flag. It seems to have caused a few other rounds of problems already, from quick searches I did on this matter...
2011-02-15corrention for bpy.props docstrings.Campbell Barton
2011-02-15fix for own error with image info display, also dont draw if the mouse is ↵Campbell Barton
outside the image.
2011-02-15fix warnings.Campbell Barton
2011-02-14more vars made staticCampbell Barton
2011-02-14made most variables which are only used in a single file and not defined in ↵Campbell Barton
header static for blenlib, blenkernel and editors.
2011-02-14comments for how py-rna calls api new classes. small speedup for ↵Campbell Barton
StructRNA.__new__(...) used for creating new classes and corrected exception type.
2011-02-14improve py/rna exception messages.Campbell Barton
2011-02-14py rna api: turn class.is_register into a class property rather then a class ↵Campbell Barton
method. eg: if MySybclass.is_registered: ...
2011-02-14SVN maintenance.Guillermo S. Romero
2011-02-14python api renaming and added headers for some files which didnt have one, ↵Campbell Barton
no functionality change.
2011-02-14misc small changes:Campbell Barton
- rename rna collection structs Main prefix to BlendData: eg, MainObjects --> BlendDataObjects - printing python collection now prints its type (when available) - renamed shadowed vars in bpy_rna.c. - when making functions static I also made debugging/test functions static, reverse and add definitions to headers instead.
2011-02-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
2011-02-13enforce string limits (reported by pedantic checking tools & some developers).Campbell Barton
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf(). also fix possible crash if CWD isnt available.
2011-02-12fix for more warnings.Campbell Barton
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array. - use BLI_snprintf rather then sprintf where the size of the string is known. - particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).
2011-02-11cls.is_registered() class method for python subclasses of internal types.Campbell Barton
Synonymous with ('bl_rna' in cls.__dict__)
2011-02-11minor python register changes.Campbell Barton
- KeyingSetInfo classes are now collected like Panels, Operators etc so bpy.utils.register_module() can be used. - move bpy.types.register() to bpy.utils.register_class
2011-02-09use static functions rather then defines for internal ↵Campbell Barton
matrix__apply_to_copy() and similar. + other minor internal changes.
2011-02-08problem with blender and python 3.2Campbell Barton
- python 3.2 does 'import site' on startup which now tries to parse pyconfig.h which isn't copied. so for now just run without importing 'site', alternative would be to copy the header file for posix systems. - cache PYTHON_VERSION variable so it can be set to 3.2, needed for copying python installation's other then 3.1.
2011-02-08fix [#25975] Quaternion/Vector.negated() isn't availableCampbell Barton
theres no need for value.negated(), better use -vec / -quat. however -quat didn't exist.
2011-02-08fix own error in recent commit [#25970] cannot create scale matrix after ↵Campbell Barton
mathutils updates
2011-02-07rename ID.update() --> update_tag() since this function only tags for ↵Campbell Barton
updating and scene.update() executes the update.
2011-02-06mathutils.Matrix.Scale(factor, size, axis)Campbell Barton
- 'axis' arg was not coerced from a tuple like other args now do. - 'axis' arg was being modified in-place (VERY BAD). - also made new function matrix_3x3_as_4x4().
2011-02-06- cmake was missing an inclide (IDE's wouldnt index)Campbell Barton
- made doc generation always sumlink newly built docs to static URL. http://www.blender.org/documentation/250PythonDoc/
2011-02-05mathutils fixes noticed when refactoring.Campbell Barton
- comparing eulers was ignoring the order. - printing Euler()'s now prints the order too. - un-orderable types (all except for Vector's), were not raising an exception when compared with >=, >, <, <=.
2011-02-05mathutils rotate functions for Euler/Quaternion/Matrix/Vector types.Campbell Barton
each accept Euler/Quaternion/Matrix types. eg: Euler.rotate(Quaternion(axis, angle)) Vector.rotate(Euler((pi/2, 0, 0))) matrix.resize_4x4() and euler.make_compatible() were still returning an instance of themselves, now return None.
2011-02-05Rename python mathutils functions and split in-place methods from those that ↵Campbell Barton
return new values. http://wiki.blender.org/index.php/Dev:2.5/Source/Python/Mathutils This completes the changes proposed. This will break scripts (fixing coming up next), for full list of changes see mathutils.c comments.
2011-02-04swap Matrix.Shear(...) arguments so matrix size is the second argument, ↵Campbell Barton
matching other constructors.
2011-02-04mathutils.Matrix.OrthoProjection(plane, size, axis), merged axis and plane ↵Campbell Barton
args. since axis was only allowed when plane was 'R'. This was already done with Matrix.Rotation().
2011-02-04small mathutils changes.Campbell Barton
- fix for returning empty slices (was returning list rather then tuple). - report invalid type when mathutils_array_parse_fast() fails.
2011-02-04PyAPI: coerce mathutils values. (vectors, quats, eulers) as proposed here:Campbell Barton
http://wiki.blender.org/index.php/Dev:2.5/Source/Python/Mathutils#Coerce_Method_Arguments