Blender Git Commits

Blender Git "master" branch commits.

Page: 4720 / 5574

April 20, 2009, 12:03 (GMT)
2.5

Node title and socket labels are now following Style/Font as well, and
scale correctly.

April 20, 2009, 11:53 (GMT)
Synching ge_dev branch: now copy from trunk
April 20, 2009, 11:45 (GMT)
Synching ge_dev branch: first delete as it was never used
April 20, 2009, 11:39 (GMT)
2.5

Fixes:

- HSV picker didn't work. Old option "No Hilite" for buttons made it not
being checked for input anymore. Needs to be on attention list!

- Node editor wasn't drawing buttons correctly. Two things to keep track
off:
- Use wmLoadIdentity(), not glLoadIdentity()
- I've added a wmPushMatrix() and wmPopMatrix() version for correct
wm-compatible push/pop. Only one level for now.


Revision 4b45c57 by Joshua Leung
April 20, 2009, 10:45 (GMT)
Drivers - Rotational Difference

Restored the code to get this working. I haven't tested this to verify it, but it 'should' work...


Also, deleted old gpencil.c file in editors, since it was causing compiling errors.
April 20, 2009, 10:20 (GMT)
Forgot to add the new gpencil files! :)

April 20, 2009, 10:13 (GMT)
2.5

Patch from Joshua, converting Grease Pencil to 2.5.
All GP data now is an ID block, allowing re-use, link and append.
For better contextual control within 2.5, these GP ID's will get
linked to actual data, like NodeTrees, Scenes, Images or Objects.
That will ensure Undo works, and opens up exciting new use cases
as well. :)

Patch note: on reading files, GPencils linked from editors will
get moved to the main library, using standard naming (indicating
where it was used), and with "Fake User" set. That way the user
can manually relink the pencils where appropriate.
We can check on just linking GP to some default, like 3d window
pencils to Scene? Nice to experiment with.

Notes for Joshua:
- for reading old GPencil, it has to use old code as well, meaning
to tread data as "indirect data, within another ID".
- Saving ID data means the chunk in file BHead needs the ID_GD code,
and not "DATA", which indicates 'indirect data'. That's the file
format spec.
- I've added do_versions_gpencil_2_50(), feel free to further tweak
things here, like linking things to scene or so.
- Formerly GPencil saved 2.50 files won't convert gpencil




Revision 332e001 by Joshua Leung
April 20, 2009, 09:17 (GMT)
Drivers: "Scripted Expression" drivers (i.e. PyDrivers) work again

Now it is possible to write a Python Expression using the variable names for driver targets (see mockup from initial commit) to substitute the appropriate values into the expression.

In the __global__ namespace for PyDriver evaluation, the following modules are available:
* __builtins__ - i.e. the builtin Python functions
* bpy - new Python API
* math or m - math module

For example:
Consider a driver with three targets, named: A, B, C
Now, you could write an expression like:
C if A < 5 else B
or even:
2*C if A < 5 or A > 20 else m.PI*B

Of course, you don't have to have three targets, the above was just an example.

TODO:
* Bring back way to load pydrivers.py
* Blender.Noise equivalent would be nice to have

P.S. I hope I haven't made any terrible Python API coding errors here (i.e. mem leaks, etc.)
April 20, 2009, 09:13 (GMT)
BGE Python API
- initialize pythons sys.argv in the blenderplayer
- ignore all arguments after a single " - " in the blenderplayer (like in blender), so args can be passed to the game.
- add a utility function PyOrientationTo() - to take a Py euler, quat or 3x3 matrix and convert into a C++ MT_Matrix3x3.
- add utility function ConvertPythonToMesh to get a RAS_MeshObject from a KX_MeshProxy or a name.
- Added error prefix arguments to ConvertPythonToGameObject, ConvertPythonToMesh and PyOrientationTo so the error messages can include what function they came from.
- deprecated brick.getOwner() for the "owner" attribute.

Revision 6482206 by Michael Fox
April 20, 2009, 04:58 (GMT)
Added some missing rna entries for scene, and added them to the scene buttons with some missing elements aswell
Revision 828581f by Joshua Leung
April 20, 2009, 03:52 (GMT)
Drivers: Editing ops in the Outliner

In much the same way as Keying Sets are defined in the Outliner, you can now select items in the Datablocks view of the Outliner, and use the D/Alt-D hotkeys to Add/Remove drivers (repectively). This is useful for settings which don't have buttons yet (in the buttons window).
Revision 387aad7 by Joshua Leung
April 20, 2009, 03:29 (GMT)
A bit more F-Modifier wrapping...
April 20, 2009, 00:19 (GMT)
Hopefully a working merge with trunk (could be one error left in raytrace.c - will check afterwards)

Merging 18706 - 19804
April 19, 2009, 22:02 (GMT)
Scons epydos changed options
- no source code since this is only useful if the epydocs contain code, ours are only docstrings.
- set inheritance to included so you dont have to search up the classes to find available functions.
- SConstruct, isolate the exception for importing epydoc.
- Added a print to the SConscript files otherwise it looks like nothings happening.
April 19, 2009, 21:26 (GMT)
SCons / epydoc support
* properly detect if epydoc is installed.
patch by Brandano
April 19, 2009, 21:01 (GMT)
BGE Python API
- More verbose error messages.
- BL_Shader wasnt setting error messages on some errors
- FilterNormal depth attribute was checking for float which is bad because scripts often expect ints assigned to float attributes.
- Added a check to PyVecTo for a tuple rather then always using a generic python sequence. On my system this is over 2x faster with an optmized build.

Revision 5146540 by Joseph Eagar
April 19, 2009, 20:09 (GMT)
changed some {} to {0}, these were causing errors on msvc. also got rid of some spurious prototypes I forgot to get rid off.
April 19, 2009, 20:09 (GMT)

Revision 084efe0 by Joseph Eagar
April 19, 2009, 19:36 (GMT)
added a python26.zip file, and also made scons pick which zip to use based on the python version
April 19, 2009, 19:31 (GMT)
Compile fixed for Win64.
Please check if that also compiles on win32.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021