Blender Git Commits

Blender Git "master" branch commits.

Page: 4660 / 5574

Revision 26c7c01 by Joshua Leung
June 29, 2009, 01:00 (GMT)
NLA SoC: Lines are now drawn on action-clip strips for indicating the timing of repeats
June 28, 2009, 18:09 (GMT)
2.5

Make include to make GE compile.

Py 2.3 doesnt compile expressions/Value.cpp btw...
Value.cpp:616: error: 'class PyObjectPlus' has no member named 'ob_type'

Probably need to wait for py 3.1 :)

June 28, 2009, 16:31 (GMT)
2.5

Starting GE should initialize opengl for the 3d region.

June 28, 2009, 15:33 (GMT)
Fixed bug which I mentioned in my previous commit - mesh will be
exported properly if it has no materials.
June 28, 2009, 14:55 (GMT)
patch [#18950] Get/set bone and type of drivers
by Alberto Torres Ruiz (dithi)

--- quoting the patch submission
This patchs adds the properties IpoCurve.driverBone and IpoCurve.driverBone2 and modifies IpoCurve.driverChannel to
allow OB_ROT_DIFF.

It sets the driver type to pose if IpoCurve.driverBone is not empty or None. Otherwise the driver type is set to
object.

Attached is the patch (with python doc) and an example .blend.

It also fixes the confusing description of IpoCurve.driver

Revision 5d6485f by Elia Sarti
June 28, 2009, 13:41 (GMT)
2.5 / RNA
Return right size for PROP_COLLECTION parameters
June 28, 2009, 13:29 (GMT)
OBJ exporter working (Python 3.0), but needs testing and fixing.
Current issues:
- NURBS - needs API additions
- "all scenes" export - cannot switch scene in bpy
- normal calculation, disabled
- duplis - need testing, only dupliverts tested
- matrix problem
- UI, 18 options currently don't fit into filesel panel, will do manual lay out once it's available
- probably others...

BPY:
- made operator "execute" method required to avoid crash
- added bpy.sys module which replicates old "sys" module

API:
- replaced create_*_mesh with a single create_mesh accepting type parameter
- added Mesh.create_copy to create a copy of a mesh with 0 users

Ran `dos2unix` on source/blender/python/SConscript
June 28, 2009, 13:27 (GMT)
PyNumberMethods needed ifdefs for python3.x and some other corrections.

June 28, 2009, 13:20 (GMT)
Added per-face materials exporting. If mesh has no materials it won't be
exported.
June 28, 2009, 12:30 (GMT)
2.5

Menu usage: enabled arrow-key based browsing, especially for open and
close sublevels. Only thing missing is to prevent sublevel to open
on creating menu (like SHIFT+A now), this is design conflict in code.
(It sends fake mouse move events causing it)

Implementation note; the 'auto open sublevel' feature gets triggered
with new state var, that checks if mouse was used or not.

Also: on render in editmode, editmode result gets stored, as usual for 2.4x.


Revision 8bf3555 by Elia Sarti
June 28, 2009, 11:37 (GMT)
Zeroing listbase result for context data collection get when no data is found.
Caused crash for uninitialized pointers when getting collection data for editors not supporting that member, e.g. "deselect all" operator in non-3dview editors.
June 28, 2009, 11:22 (GMT)
BGE Python API
Remove the last of the odd C++/python wrapper code from http://www.python.org/doc/PyCPP.html (~1998)

* Use python subclasses rather then having fake subclassing through get/set attributes calling parent types.
* PyObject getset arrays are created while initializing the types, converted from our own attribute arrays. This way python deals with subclasses and we dont have to define getattro or setattro functions for each type.
* GameObjects and Scenes no longer have attribute access to properties. only dictionary style access - ob['prop']
* remove each class's get/set/dir functions.
* remove isA() methods, can use PyObject_TypeCheck() in C and issubclass() in python.
* remove Parents[] array for each C++ class, was only used for isA() and wasnt correct in quite a few cases.
* remove PyTypeObject that was being passed as the last argument to each class (the parent classes too).

TODO -
* Light and VertexProxy need to be converted to using attributes.
* memory for getset arrays is never freed, not that bad since its will only allocates once.

June 28, 2009, 09:35 (GMT)
2.5

Bugfixes:

- Preview Icon for render result crashed, there was still need for a scene
pointer to be passed on.

- Added quick fix for preventing shaded drawmode to call render while
rendering is in progress. It crashes badly.
Rendering while UI is alive is still in probation, most UI stuff will
probably get blocked, with exception from inspecting buttons and using
the image window.

Revision aa4ed13 by Joshua Leung
June 28, 2009, 07:32 (GMT)
NLA SoC: NLA Mapping Cleanup

While trying to fix the mapping conversions for repeat, I came across some limitations with the current (soon to be previous) mapping methods.

Now the mapping conversions should work nicely for all places that use them.
June 28, 2009, 07:26 (GMT)
2.5 MSVC 9 projectfiles
* added missing include to KX_blenderhook project
Revision 500507d by Joshua Leung
June 28, 2009, 03:26 (GMT)
NLA SoC: Merge from 2.5 - 21179 to 21209
Revision 61e30f0 by Joshua Leung
June 28, 2009, 03:13 (GMT)
NLA SoC: Renamed NLA-Editor operators to be more in line with those in other editors
June 28, 2009, 02:47 (GMT)
removed un-needed hack, something weired was going on when debugging that made the pointers to these functions change after initialization.
June 28, 2009, 02:37 (GMT)
BGE Fix for no redrawing.
Was caused by un-initialized engine ticrate, do_versions was working on 2.4x but isnt in 2.5 so just add a zero check when getting from the world.
June 27, 2009, 23:54 (GMT)
BGE Redraw problem:
at the moment only files from blender 2.4x will display in 2.5x, compared area and window structs in both cases and dont see any differences.

This doesnt fix the problem but corrects a few things related to window drawing with the BGE,
also adds a hack because I noticed the window and area pointers in the KX_BlenderCanvas were offset after initialized, maybe need to use <static cast> ?
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021