Blender Git Commits

Blender Git "master" branch commits.

Page: 4658 / 5574

July 1, 2009, 13:07 (GMT)
converting nurbs to a mesh ignored smoothing for Alt+C and from pythons getFromObject()
July 1, 2009, 12:36 (GMT)
fixed ray mirror/trans shadow on rayobject_bvh
July 1, 2009, 12:19 (GMT)
RNA

* Mesh.add_geometry, Mesh.update and make indices editable. This
is without checking if they are valid still, no time now to
implement this.
* Also fix warnings in rna_ui.c, and a bug in CDDM_calc_edges.

Example code:

co = [0.0, 0.0, 0.0] + [1.0, 0.0, 0.0] + [0.0, 1.0, 0.0] + [1.0, 1.0, 0.0]
faces = [0, 1, 2, 0] + [1, 3, 2, 0]

mesh.add_geometry(4, 0, 2)

mesh.verts.foreach_set("co", co)
mesh.faces.foreach_set("verts", faces)

mesh.update()

July 1, 2009, 11:27 (GMT)
*Added rayobject_bvh
A bvh structure to use on the raytracer
Revision 66c8627 by Joshua Leung
July 1, 2009, 01:17 (GMT)
NLA SoC: Renamed a few options for the Mirror operators since their purpose wasn't clear (in practice)
June 30, 2009, 23:06 (GMT)
2.5/Sculpt:

== Re-added smooth stroke ==

UI: toggle is just in the sculpt menu for now. Also changes the sculpt paint cursor slightly, draws a line between previous and current locations.

It's a different implementation than in 2.4, works like this:

The stroke interpolates between the last mouse location and the current location, weighted towards the previous location. If the stroke gets within a certain radius of the current mouse location, the stroke stops. This radius allows for sharp turns in the stroke.

Todo: there are two hard-coded parameters that should become user settable, that's the weighting between previous and current locations, and most important, the no-update radius.

Note also that this option was added as a per-brush flag, worth discussing whether that's the correct place, or whether it should be a sculpt setting like symmetry?

== Improved stroke spacing ==
The previous implementation of stroke spacing simply guaranteed that stroke dots would not occur any closer than the space setting. It now forces stroke dots to always be the specified distance apart.

Todo: Performance gets pretty awful with a small spacing setting, this needs optimization.

June 30, 2009, 22:07 (GMT)
*Added initial code of rayobject_rtbuild
An helper class to build trees
June 30, 2009, 21:59 (GMT)
disabling foreach_get/set for python2.x, since it uses new buffer api.
June 30, 2009, 20:34 (GMT)
2.5 filebrowser
* show only name of the last directory for the bookmark
* small fix of projectfile: header BLI_fileops.h was moved
Note: full path should appear in tool tip later, also for renaming bookmarks later on.
June 30, 2009, 20:31 (GMT)
2.5 MSVC projectfiles
* small maintenance: editors/info_header.c removed, editors/info_ops.c added
Revision 03e11e1 by Tom Musgrove
June 30, 2009, 20:14 (GMT)
Reverting changes made for laptop/two button mice - will make the changes available as a patch.
June 30, 2009, 19:37 (GMT)
Exporter:
- texture/UV set binding
- extract names correctly from id.name
- output <unit name="meter" meter="1"/> in <asset>, dunno if this fits Blender
Revision a50dfe7 by Shaul Kedem
June 30, 2009, 19:29 (GMT)
second part of python2.6 upgrade in cmake, now it will copy the dlls too
June 30, 2009, 19:20 (GMT)
2.5

Image Window
* Unpack operator now works.
* Some small layout code tweaks.

Info Window Header
* Moved to python UI code.
* template_running_jobs, template_operator_search added.
* Ported external data operators: pack/unpack all, make
paths relative/absolute, find/report missing files.

Also
* Report RPT_INFO too, not only warnings and errors.
* Run UI handle functions after RNA and Operators.
* Rename particle system add/remove operators, to not
include "slot", that's only there for materials because
that's what they are called now in RNA.

June 30, 2009, 19:10 (GMT)
RNA

* Add Image.dirty boolean.
* Added Window struct, with editable Window.screen.
* Make Screen.scene editable.

June 30, 2009, 18:29 (GMT)
2.5 filebrowser
* Hide dot operator (HKEY) for theeth

June 30, 2009, 18:20 (GMT)
2.5 MSVC projectfiles
* moving projectfiles to python 2.6 to avoid recurring issues with python migration
Revision d37a8fb by Shaul Kedem
June 30, 2009, 18:20 (GMT)
windows cmake uses python26 now, make sure your lib/windows is up to date (requires an additional svn update, in lib/windows
June 30, 2009, 14:05 (GMT)
*reserved RayObject align offset 0 for private usage inside each structure
point is that other structures like trees can then distiguish between other nodes or rayobject primitives
withouth needing any other variable.
(Note yet used but will reduce memory by a nice factor (linear to the number of primitives))
June 30, 2009, 12:52 (GMT)
python access to RNA arrays.

coords = array.array('f', [0.0]) * len(me.verts) * 3
m.verts.foreach_get('co', coords)

the reverse works with set also.
currently works for python buffers or sequences (slower)

Quick speed test with 1,179,654 verts.

*foreach_get*
list 0.377
array 0.032
py 10.29

*foreach_set*
list 0.184
array 0.028
py 9.79


where python was done like this...
----
i= 0
for v in m.verts:
co = v.co
l[i] = co[0]; l[i+1] = co[0]; l[i+2] = co[0]
i+=3
----

some of the error checking here needs to be cleaned up to account for different invalid bad inputs.

By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021