blender-staging.git
11 years agosvn merge -r 16231:16536 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Mon, 15 Sep 2008 14:20:31 +0000 (14:20 +0000)]
svn merge -r 16231:16536 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years agosvn merge -r 16215:16231 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Fri, 22 Aug 2008 15:40:41 +0000 (15:40 +0000)]
svn merge -r 16215:16231 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years agosvn merge -r 16174:16215 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Thu, 21 Aug 2008 22:57:25 +0000 (22:57 +0000)]
svn merge -r 16174:16215 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years agoImplemented a find_nearest with heaps. This reachs a minimal number of distance queries.
Andre Susano Pinto [Mon, 18 Aug 2008 19:31:40 +0000 (19:31 +0000)]
Implemented a find_nearest with heaps. This reachs a minimal number of distance queries.
But the cost of maintaining the heap seems to be very high.

For now DFS with local heuristics gets better times.. so BVHTree still uses that.

11 years agosvn merge -r 16077:16174 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Mon, 18 Aug 2008 14:33:26 +0000 (14:33 +0000)]
svn merge -r 16077:16174 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years agoSimpledeform origin is no longer attache to parent by default
Andre Susano Pinto [Fri, 15 Aug 2008 00:51:44 +0000 (00:51 +0000)]
Simpledeform origin is no longer attache to parent by default
That was due to a current limitation on dag system.. that leads to cyclic dependencies.

So now you can attach the origin of a simpledeform  to an empty and mark whether its
affected by the relative position of empty or the global one.

brecht found a workarround to solve the cyclic dependency by
using a parent of both the mesh and the control empty:

empty_parent
 |
 |-> empty controlling simpledeform
 |-> mesh with simpledeform modifier

11 years agoFixed bug related to some missed rays-hits.. just a lack of a FLT_EPSILON
Andre Susano Pinto [Thu, 14 Aug 2008 15:37:47 +0000 (15:37 +0000)]
Fixed bug related to some missed rays-hits.. just a lack of a FLT_EPSILON

11 years agoAdded subsurface levels option to normal projection.
Andre Susano Pinto [Thu, 14 Aug 2008 03:05:13 +0000 (03:05 +0000)]
Added subsurface levels option to normal projection.
Now when doing normal projeciton is possible to ask it to project along the normals
that the vertex would have if it was subsurfaced... this gives "better" projections on
low polys.

Point of this commit is to add the feature request from Eclectiel
http://blenderartists.org/forum/showpost.php?p=1181531&postcount=9

workflow as Eclectiel wanted is now possible:

to archieve a nice low-res retopology that aproximates a high-res mesh when subsurfaced:
1 - make base low-poly retopo
2 - apply a shrinkwrap with projection along normal.. and with SS level = N (where N>0)
3 - add a Subsurface with level N
4 - run bretch's script (ss_fit)

11 years agoFixed problem of "lack of normal information"
Andre Susano Pinto [Wed, 13 Aug 2008 20:18:56 +0000 (20:18 +0000)]
Fixed problem of "lack of normal information"

11 years agosvn merge -r 15988:16077 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Wed, 13 Aug 2008 19:22:35 +0000 (19:22 +0000)]
svn merge -r 15988:16077 https://svn.blender.org/svnroot/bf-blender/trunk/blender
To have the 50% faster nearest_surface point.
Changed mesh_faces_nearest_point to return the face normal instead of collision normal

11 years agoFixed a typo
Andre Susano Pinto [Wed, 13 Aug 2008 17:34:09 +0000 (17:34 +0000)]
Fixed a typo
I was using the word "kept" (past tense) instead of "keep" (basic form).
I hope my english teachter dont sees this commit xD

11 years agoFixed compile for windows
Andre Susano Pinto [Wed, 13 Aug 2008 13:36:09 +0000 (13:36 +0000)]
Fixed compile for windows

11 years agofixed a bug related with "cullfaces" option on shrinkwrap
Andre Susano Pinto [Wed, 13 Aug 2008 01:38:13 +0000 (01:38 +0000)]
fixed a bug related with "cullfaces" option on shrinkwrap
enabled openmp during the tree queries (before it was only enabled during tree building)

11 years ago*Added documentation mainly at shrinkwrap.c
Andre Susano Pinto [Tue, 12 Aug 2008 20:43:10 +0000 (20:43 +0000)]
*Added documentation mainly at shrinkwrap.c

*removed commented code about the dropped shrinkwrap options
*Removed references to "cut plane", "limitMesh".. its now called "auxiliar target"

*Added option to shrinkwrap over an selected axis
*"Normal projection" mode is now called "projection" since it can now project over "normal, and any combination X, Y, Z"

11 years agosvn merge -r 15988:16055 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Mon, 11 Aug 2008 13:29:38 +0000 (13:29 +0000)]
svn merge -r 15988:16055 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years agopreparing to merge trunk (those files were sent to trunk)
Andre Susano Pinto [Mon, 11 Aug 2008 13:16:06 +0000 (13:16 +0000)]
preparing to merge trunk (those files were sent to trunk)

11 years agoMoved bvhtree_from_mesh api to its own files
Andre Susano Pinto [Thu, 7 Aug 2008 15:18:47 +0000 (15:18 +0000)]
Moved bvhtree_from_mesh api to its own files
BKE_bvhutils.h and intern/bvhutils.c

11 years agoAdded several comments to BLI_kdopbvh
Andre Susano Pinto [Thu, 7 Aug 2008 14:26:27 +0000 (14:26 +0000)]
Added several comments to BLI_kdopbvh
Changed BENCH to print both wall-clock/real time and cpu time

11 years agosvn merge -r 15908:15988 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Wed, 6 Aug 2008 16:50:07 +0000 (16:50 +0000)]
svn merge -r 15908:15988 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years agoFixed non_recursive BVHbuild with openmp
Andre Susano Pinto [Wed, 6 Aug 2008 15:46:38 +0000 (15:46 +0000)]
Fixed non_recursive BVHbuild with openmp
CHanged the BENCH functions to use: gettimeofday (wall time) instead of clock (cpu time)
This was to test if the openmp was working right.

11 years agoJust a tmp commit about bvhtree build
Andre Susano Pinto [Tue, 5 Aug 2008 18:49:51 +0000 (18:49 +0000)]
Just a tmp commit about bvhtree build
Theres something broken with BVHtree queries.. updates are not advised at all

11 years agoShrink BVHNode by 16bits
Andre Susano Pinto [Mon, 4 Aug 2008 20:30:57 +0000 (20:30 +0000)]
Shrink BVHNode by 16bits

11 years agoMade shrinkwrap variables be initialized when declared
Andre Susano Pinto [Mon, 4 Aug 2008 14:27:25 +0000 (14:27 +0000)]
Made shrinkwrap variables be initialized when declared

11 years agoSimpleDeform modifications:
Andre Susano Pinto [Mon, 4 Aug 2008 13:12:35 +0000 (13:12 +0000)]
SimpleDeform modifications:
  * Added "Lock axis" options on taper and strech/squash (suggested by ZanQdo)
  * Better control of deform factor (suggested by ZanQdo)
  * Added eModifierTypeFlag_AcceptsCVs (so it now accepts both curves and meshes)

11 years agoFixed double inflation in case of co_moving points
Andre Susano Pinto [Mon, 4 Aug 2008 11:50:36 +0000 (11:50 +0000)]
Fixed double inflation in case of co_moving points

11 years agoadded openmp support for bvhtree build (max processes = tree_type)
Andre Susano Pinto [Sun, 3 Aug 2008 15:37:24 +0000 (15:37 +0000)]
added openmp support for bvhtree build (max processes = tree_type)

11 years agoAdded shrinkwrap as a constraint.
Andre Susano Pinto [Sun, 3 Aug 2008 02:02:15 +0000 (02:02 +0000)]
Added shrinkwrap as a constraint.
All modes are available:
nearest surface
nearest vertex
normal projection (along X,Y or Z axis)

11 years agosvn merge -r 15688:15908 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Fri, 1 Aug 2008 21:37:36 +0000 (21:37 +0000)]
svn merge -r 15688:15908 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years agoFixed simple deform strech/squash function
Andre Susano Pinto [Fri, 25 Jul 2008 23:52:16 +0000 (23:52 +0000)]
Fixed simple deform strech/squash function

11 years agoConverted shrinkwrap to a DeformOnly modifier
Andre Susano Pinto [Fri, 25 Jul 2008 18:48:24 +0000 (18:48 +0000)]
Converted shrinkwrap to a DeformOnly modifier

*the options "remove faces", "merge" points were removed
*made shrinkwrap work with CVs (curves and nurbs surfaces)
*cleanup shrinkwrap code.. (removed bruteforces and raytree methods)

11 years agosvn merge -r 15590:15688 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Tue, 22 Jul 2008 12:02:57 +0000 (12:02 +0000)]
svn merge -r 15590:15688 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years ago*BVHTreeFromMesh api changed.. it now stores all information like defaults callbacks...
Andre Susano Pinto [Tue, 22 Jul 2008 11:50:50 +0000 (11:50 +0000)]
*BVHTreeFromMesh api changed.. it now stores all information like defaults callbacks to raycast and nearest surface (just to make it easier to use)
*Fixed button size of "Above surface"

11 years agoFixed a bug relative to editmode..
Andre Susano Pinto [Mon, 21 Jul 2008 22:36:05 +0000 (22:36 +0000)]
Fixed a bug relative to editmode..
now its calling CDDM_calc_normals when receiving a mesh to deform,
since in edit mode the mesh doenst has normals calculated

11 years agoMade shrinkwrap modifier work when target or cutPlane are in editmode.
Andre Susano Pinto [Mon, 21 Jul 2008 18:12:02 +0000 (18:12 +0000)]
Made shrinkwrap modifier work when target or cutPlane are in editmode.

11 years agoFollowing the same optimization as bvh raycast:
Andre Susano Pinto [Sat, 19 Jul 2008 15:22:38 +0000 (15:22 +0000)]
Following the same optimization as bvh raycast:
*Made nearest surface also use "quad" bvh tree (instead of splitting quads in 2 bvh nodes).
 Again that leaded to improvements in build and query time.

*BLI_bvhtree_find_nearest api is now following the same concept as BLI_bvhtree_ray_cast

removed code relative to bvhtree_from_mesh_tris.

11 years ago*Added "kept" mesh above surface option on shrinkwrap to nearest surface
Andre Susano Pinto [Fri, 18 Jul 2008 22:24:20 +0000 (22:24 +0000)]
*Added "kept" mesh above surface option on shrinkwrap to nearest surface
changed a few code relative to project over normal mode (to try to kept code generic and more independent of modifier itself)

11 years agoLast commit fixed the file contents.. but some svn props were missing.
Andre Susano Pinto [Tue, 15 Jul 2008 21:08:39 +0000 (21:08 +0000)]
Last commit fixed the file contents.. but some svn props were missing.

So I fixed the problem with merges instead of copying files over.
Also trunk/blender/release/scripts/scripttemplate_ipo_gen.py from revision 14530 was missing. (that was fixed)

svn merge -r 15590:15551 https://svn.blender.org/svnroot/bf-blender/branches/soc-2008-jaguarandi (revert changes to the point where the merge was incorrect)
svn merge -r 15552:15572 https://svn.blender.org/svnroot/bf-blender/branches/soc-2008-jaguarandi (apply branch modifications)
svn merge -r 15392:15590 https://svn.blender.org/svnroot/bf-blender/trunk/blender (merge from trunk)

11 years agoThere was a problem with the last merge :S
Andre Susano Pinto [Tue, 15 Jul 2008 12:54:57 +0000 (12:54 +0000)]
There was a problem with the last merge :S
Somehow it didnt finished and didnt added some files under the svn control
(found thanks to lguillaume that reported some files were missing)

Last merge fixed and also merged modifications up to revision 15584.

I checked the diff
svn diff --new . --old https://svn.blender.org/svnroot/bf-blender/trunk/blender
And everything seems to be right now

11 years agoImproved build time on BLI_kdopbvh
Andre Susano Pinto [Mon, 14 Jul 2008 18:42:53 +0000 (18:42 +0000)]
Improved build time on BLI_kdopbvh
Its now faster than raytree (both on build and query)

Things tryed:
 X=>Y=>Z=>X split (reduces build time.. but increases query time)
 bucket sorts
(initial sorts for fast usage of bucket take a long time)
(nth is linear.. so its quite fast already)

Best times archieve with:
 *usage of 4-ary trees.. reduces build time and tree size but didnt decreased query time
 *quads are on the same node instead of splitting in 2 tris..
(this actually turned on speedup on query time.. since tree size is reduced by a factor of 2)
 *test ray-bb before ray-primitive gives better times on both tris and quads

Notes:
 measures where made projecting a sphere from inside the head of suzanne.

11 years agosvn merge -r 15392:15551 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Sun, 13 Jul 2008 13:21:01 +0000 (13:21 +0000)]
svn merge -r 15392:15551 https://svn.blender.org/svnroot/bf-blender/trunk/blender

11 years agoAdding the Cullface option on normal projection of shrinkwrap when using bvhtrees
Andre Susano Pinto [Sun, 13 Jul 2008 01:49:53 +0000 (01:49 +0000)]
Adding the Cullface option on normal projection of shrinkwrap when using bvhtrees

12 years agoAdded sphere cast (tought it doenst seems to solve the intersection problem)
Andre Susano Pinto [Fri, 11 Jul 2008 19:46:35 +0000 (19:46 +0000)]
Added sphere cast (tought it doenst seems to solve the intersection problem)
Fixed SweepingSphereIntersectsTriangleUV

12 years agoAdd raycast ability for BLI_kdopbvh
Andre Susano Pinto [Wed, 9 Jul 2008 19:43:09 +0000 (19:43 +0000)]
Add raycast ability for BLI_kdopbvh

small bvh fixes:
*allow to create any tree type >= 2
*save split axis

changed shrinkwrap to perform normal cast with raytree and bvh tree and print both times:

Shrinkwrap (OBCube)24578 over (OBSuzanne)504482
target = raytree_create_from_mesh(calc->target): 1260.000000ms
shrinkwrap_calc_normal_projection_raytree(&calc): 1850.000000ms
tree = bvhtree_from_mesh_tri(calc->target): 3330.000000ms
shrinkwrap_calc_normal_projection(&calc): 3780.000000ms

On general query time is bit smaller on bvh tree..
but the build time of bvh is pretty big.
(build time can be removed from both if a cache system is added)
But I am still trying to see how fast I can make the bvh build

12 years ago*Added vertex groups on simple deform
Andre Susano Pinto [Fri, 4 Jul 2008 19:56:31 +0000 (19:56 +0000)]
*Added vertex groups on simple deform
*Fixed a few UI things

*Make SimpleDeform and Shrinkwrap to use vertexgroup_get_vertex_weight, a similar function
 "static float vert_weight(MDeformVert *dvert, int group)"  existed on modifier.c, changed
it a bit and moved into BKE_deform.h

12 years agoAdded modes Squash and Strech to SimpleDeform (need testing)
Andre Susano Pinto [Fri, 4 Jul 2008 01:03:50 +0000 (01:03 +0000)]
Added modes Squash and Strech to SimpleDeform (need testing)
CHanged the add modifier menu to show a submenu for selecting the type of simpledeform.

12 years agoAdded lower and upper options on all modes of simple deform
Andre Susano Pinto [Wed, 2 Jul 2008 00:17:08 +0000 (00:17 +0000)]
Added lower and upper options on all modes of simple deform
Fixed existent offset after applying bend.

12 years agosvn merge -r 15292:15392 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Mon, 30 Jun 2008 22:57:52 +0000 (22:57 +0000)]
svn merge -r 15292:15392 https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agoModifications on simple modifier
Andre Susano Pinto [Fri, 27 Jun 2008 16:45:37 +0000 (16:45 +0000)]
Modifications on simple modifier
+Added limits on bend
+button to create an empty and make child of object
+empty is now relative to object

12 years agoAdding initial SimpleModifier (bend,taper,twist)
Andre Susano Pinto [Tue, 24 Jun 2008 12:04:27 +0000 (12:04 +0000)]
Adding initial SimpleModifier (bend,taper,twist)

(I might only touch this code again late on the week :S, so here is a tmp commit)

12 years agoChanged the style on shrinkwrapModifier_copyData.
Andre Susano Pinto [Mon, 23 Jun 2008 16:23:26 +0000 (16:23 +0000)]
Changed the style on shrinkwrapModifier_copyData.

Genscher made me do it the same way that the other 10 modifiers do.
The reason why I initially choosed memcpy was so that if anyone added
parameters on DNA there would be no need to update _copyData, unless
if it was a feature related to memory (eg.: point cache)

12 years agoFixed bug.. on shrinkwrap_copyModifier
Andre Susano Pinto [Mon, 23 Jun 2008 15:48:03 +0000 (15:48 +0000)]
Fixed bug.. on shrinkwrap_copyModifier

12 years agoAdded shrinkwrapModifier_isDisabled api function
Andre Susano Pinto [Mon, 23 Jun 2008 14:12:22 +0000 (14:12 +0000)]
Added shrinkwrapModifier_isDisabled api function

12 years agosvn merge -r 15202:15292 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Andre Susano Pinto [Fri, 20 Jun 2008 21:36:15 +0000 (21:36 +0000)]
svn merge -r 15202:15292 https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agoAdded cut-plane option.
Andre Susano Pinto [Fri, 20 Jun 2008 21:10:16 +0000 (21:10 +0000)]
Added cut-plane option.
Its now possible to project 2 planes over a model and get a cloth..
Tought it still has a few issues.. related with distance to kept from mesh.

12 years agoAdded merge option to shrinkwrap when using projection mode (bruteforce for now)
Andre Susano Pinto [Tue, 17 Jun 2008 19:00:21 +0000 (19:00 +0000)]
Added merge option to shrinkwrap when using projection mode (bruteforce for now)
Changed code to remove faces (now quad faces that got one vertice projected are turned on tri)

Merge option is still not very usefull since shrinkwrap does not yet moves unprojected vertices

12 years agoMerge from trunk
Andre Susano Pinto [Wed, 11 Jun 2008 22:53:52 +0000 (22:53 +0000)]
Merge from trunk
svn merge -r 15104:15202 https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agoAdded sample "CreatePlane" .. it simple projects a grid over the selected image and...
Andre Susano Pinto [Wed, 11 Jun 2008 22:35:27 +0000 (22:35 +0000)]
Added sample "CreatePlane" .. it simple projects a grid over the selected image and determines which squares are to be used.

12 years agoReason of last commits kdopbvh tree is now on trunk.
Andre Susano Pinto [Tue, 3 Jun 2008 19:56:19 +0000 (19:56 +0000)]
Reason of last commits kdopbvh tree is now on trunk.
Added those files to the branch and added code for NearestNeighbour, needed for shrinkwrap

12 years agoMerge from trunk
Andre Susano Pinto [Tue, 3 Jun 2008 19:27:46 +0000 (19:27 +0000)]
Merge from trunk
svn merge -r 15064:15104 https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agoRemoved BLI_kdopbvh
Andre Susano Pinto [Tue, 3 Jun 2008 19:20:57 +0000 (19:20 +0000)]
Removed BLI_kdopbvh

12 years agoCollision commit code cleanup for nicer compile
Daniel Genrich [Tue, 3 Jun 2008 19:06:54 +0000 (19:06 +0000)]
Collision commit code cleanup for nicer compile

12 years agoCollisions: Commit of collision cleanup, put kdop-bvh structure into BLI_kdopbvh...
Daniel Genrich [Tue, 3 Jun 2008 18:48:54 +0000 (18:48 +0000)]
Collisions: Commit of collision cleanup, put kdop-bvh structure into BLI_kdopbvh (just like kdtree interface now), huge speedup for selfcollisions, also better normal collisions (merge from cloth branch)

12 years agoA few compiler warning fixes. Those in BME_customdata.c were more serious.
Joshua Leung [Tue, 3 Jun 2008 10:04:42 +0000 (10:04 +0000)]
A few compiler warning fixes. Those in BME_customdata.c were more serious.

12 years agoBugfix #13603:
Joshua Leung [Tue, 3 Jun 2008 10:00:09 +0000 (10:00 +0000)]
Bugfix #13603:

Action Editor Copy/Paste didn't trigger a depsgraph update for the active object (if the action was applied to it).

12 years ago== REDCODE ==
Peter Schlaile [Tue, 3 Jun 2008 06:42:13 +0000 (06:42 +0000)]
== REDCODE ==

got #endif position wrong, breaking compile without redcode, sorry.
(Thanks to jms for pointing that out)

12 years agoincrease the level you can zoom out (andy's timelapse videos were a pain to edit)
Campbell Barton [Tue, 3 Jun 2008 01:01:47 +0000 (01:01 +0000)]
increase the level you can zoom out (andy's timelapse videos were a pain to edit)

12 years ago== REDCODE ==
Peter Schlaile [Mon, 2 Jun 2008 22:02:26 +0000 (22:02 +0000)]
== REDCODE ==

Forgot to free redcontext in IMB_free_anim...

12 years ago== redcode ==
Peter Schlaile [Mon, 2 Jun 2008 21:39:45 +0000 (21:39 +0000)]
== redcode ==

Disabled by default now on all platforms besides Linux.

12 years ago== RED one (redcode) ==
Peter Schlaile [Mon, 2 Jun 2008 21:35:57 +0000 (21:35 +0000)]
== RED one (redcode) ==

This adds redcode (the file format of RED one, R3D) support to blender.
Seems to work fine with the footage I found on the web, but keep in
mind, that because of the unoptimized nature of libopenjpeg, frame
decoding isn't that fast.

It is also a rather challenging task, to make 4k-float-footage realtime :)

12 years ago-> More Bmesh Custom Data stuff
Geoffrey Bantle [Mon, 2 Jun 2008 20:52:40 +0000 (20:52 +0000)]
-> More Bmesh Custom Data stuff

Some more Bmesh custom data functions and
structures. This still does not do anything
yet because the various conversion functions
don't bother making use of the new custom data
functions. Hooking them up should be fairly
simple though.

Also note that the custom data code is mostly
copy/pasted from the existing custom data
functions for editmode with a few modifications.
Duplicating code like this isn't nice, but I
felt it was better to keep things for Bmesh
'standalone' for the moment and take only what is
immediatly needed instead of creating
a tangle of interdependant code.

12 years agoPatch #11000 approved: [new function] KX_GameObject::alignAxisToVect() Align an objec...
Benoit Bolsee [Mon, 2 Jun 2008 17:31:05 +0000 (17:31 +0000)]
Patch #11000 approved: [new function] KX_GameObject::alignAxisToVect() Align an object's axis to a given vector

12 years agoAdded missing newline for error print in Py-button expressions
Joshua Leung [Mon, 2 Jun 2008 02:54:33 +0000 (02:54 +0000)]
Added missing newline for error print in Py-button expressions

12 years agoCompiler warning fixes (unused vars).
Joshua Leung [Mon, 2 Jun 2008 01:02:08 +0000 (01:02 +0000)]
Compiler warning fixes (unused vars).

Notes:
- edgehash.c still has some weirdo code causing warnings on lines 80 and 117
i.e.  if (v1<v0) v0 ^= v1 ^= v0 ^= v1;
- material.c (in pyapi) apparently doesn't seem to be making use of some functions for glossy stuff

12 years ago-> Fix for last few commits
Geoffrey Bantle [Sun, 1 Jun 2008 18:43:22 +0000 (18:43 +0000)]
-> Fix for last few commits

New memory allocator broke compilation on
GCC/Linux. Fixed

12 years ago-> Beginning of Custom Data support for BMesh
Geoffrey Bantle [Sun, 1 Jun 2008 18:02:29 +0000 (18:02 +0000)]
-> Beginning of Custom Data support for BMesh

Now that new allocator is in place, Custom Data
can be effeciently added to BMesh. The plan is to
make all data not directly related to topology
Custom Data and allow callers to decide precisely
what information a mesh should have in order to
make the best tradeoff between memory usage/speed.

Right now not much to look at, just some structure
definitions and commented out code. More to come
soon...

12 years ago-> New memory allocator for Bmesh
Geoffrey Bantle [Sun, 1 Jun 2008 17:15:03 +0000 (17:15 +0000)]
-> New memory allocator for Bmesh

Added a new pooling allocator for Bmesh based upon
the pool allocator availible in the Boost C++ library
as described here:

http://www.boost.org/doc/libs/1_34_0/libs/pool/doc/concepts.html

Each pool allocates elements of a fixed size, so every
element type in a mesh gets its own pool. For instance
verts occupy a different pool than edges. Each pool
is comprised of multiple arrays of a fixed size and allocating
/freeing elements is simple as removing or adding a head
to a linked list. Since the list of free elements is interleaved
throughout the unused space in the arrays, the overhead
for storing the free list is only 1 pointer total per pool.

This makes building/destroying bmesh structures much faster
and saves quite a bit of memory as well.

12 years agofunctionality fix
Campbell Barton [Sun, 1 Jun 2008 16:13:04 +0000 (16:13 +0000)]
functionality fix
Originally the only way to run scripts automatically was with scriptlinks, which could be disabled for loading untrusted blend files.
Since then PyDrivers and PyConstraints would run even when G.f&G_DOSCRIPTLINKS was disabled.
Gensher, Theeth and Ianwill agree its acceptable to reuse the flag for other areas python runs automatically.

PyNodes still have no way to be disabled, (todo before 2.46a)

12 years ago== FFMPEG ==
Peter Schlaile [Sun, 1 Jun 2008 14:37:09 +0000 (14:37 +0000)]
== FFMPEG ==

Shouldn't crash any more in the case that
a) invalid video options were selected
and
b) audio multiplexing was active

[#13311] video_stream NULL when writing ffmpeg

(did'nt crash for me though, but added extra protection :) )

12 years agobugfix (typo) [#13587] Python API Material.sssFront broken
Campbell Barton [Sun, 1 Jun 2008 13:18:26 +0000 (13:18 +0000)]
bugfix (typo) [#13587] Python API Material.sssFront broken

12 years ago-Fix for bug #13067
Geoffrey Bantle [Sun, 1 Jun 2008 01:56:35 +0000 (01:56 +0000)]
-Fix for bug #13067

Bevel tool was hanging on certain geometry where the edge
to be beveled was shared by two faces that had more than
one edge in common and caller was not checking return
status of Bmesh eulers. Fixed.

12 years agobugfix for own error
Campbell Barton [Sun, 1 Jun 2008 01:49:11 +0000 (01:49 +0000)]
bugfix for own error
[#13588] Python API Material.sssRadiusBlue broken

12 years agoMerging revisions 15020-15073 of https://svn.blender.org/svnroot/bf-blender/trunk...
Daniel Genrich [Sat, 31 May 2008 21:23:57 +0000 (21:23 +0000)]
Merging revisions 15020-15073 of https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agobugfix for own error
Campbell Barton [Sat, 31 May 2008 19:08:12 +0000 (19:08 +0000)]
bugfix for own error
glitch when typing in / would ask the user to make a new directory. the last shash was being removed, then the "" path didnt exist and
asked to create it.

12 years agobufgfix for [#13584] SIGSEV in fluid bake with large amount of small fluid objects
Campbell Barton [Sat, 31 May 2008 19:01:14 +0000 (19:01 +0000)]
bufgfix for [#13584] SIGSEV in fluid bake with large amount of small fluid objects
the maximum number of objects (255) wasnt being checked, added a check before baking.
also changed bakeing to use G.scene->base rather then G.main->objects since these can be in other scenes, from linked
groups, or used only by python so they should not be used for baking. it also meant having a domain in 2 scenes would fail with an error.

Nils, could be good to have a dynamic number of bakeable objects.

12 years agobugfix
Campbell Barton [Sat, 31 May 2008 16:22:07 +0000 (16:22 +0000)]
bugfix
* [#13394] Sequencer: if internal strips have handles selected, dragging the metastrip changes the meta length
* Extend did not work correctly on metastrips when the nested seq's are out of the meta's frame range, added an argument to seq_tx_get_final_left/right
that returns the frame clipped by metastrip(s) if any.

12 years agobugfix for own error, introduced when running scripts were saved with the blend file.
Campbell Barton [Sat, 31 May 2008 12:12:03 +0000 (12:12 +0000)]
bugfix for own error, introduced when running scripts were saved with the blend file.
a script error with a script that has an interface would not stop the interface from running again immediately, causing an annoying
error message loop.

12 years agoAdded culling on normal projection.
Andre Susano Pinto [Sat, 31 May 2008 01:25:24 +0000 (01:25 +0000)]
Added culling on normal projection.
Now renderdemon is happy ;)
and now shrinkwrap can be used for bulging :)

12 years agoMerge from trunk
Andre Susano Pinto [Fri, 30 May 2008 20:33:33 +0000 (20:33 +0000)]
Merge from trunk
svn merge  -r 14954:15064 https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years ago== PyNodes ==
Willian Padovani Germano [Fri, 30 May 2008 20:04:52 +0000 (20:04 +0000)]
== PyNodes ==

Bug #13277, reported by Juho (bebraw) Vepsalainen (thanks!) - a typo made pynodes w/o input socket definitions fail with an out of range error when accessing the output sockets in the script.

12 years agoThis is patch [#9057] Updated doc string to match current defines
Kent Mein [Fri, 30 May 2008 19:52:42 +0000 (19:52 +0000)]
This is patch [#9057] Updated doc string to match current defines

also submitted by gsr

It just updates a comment to correct values.

Kent

12 years agoThis is patch [#9053] More concrete makesdna reporting
Kent Mein [Fri, 30 May 2008 19:46:48 +0000 (19:46 +0000)]
This is patch [#9053] More concrete makesdna reporting
Submitted by gsr

It just makes the printf's all different so you can tell where the problem
is.

Kent

12 years agoFix crash with hidden bezier handles
Martin Poirier [Fri, 30 May 2008 09:05:09 +0000 (09:05 +0000)]
Fix crash with hidden bezier handles

See Cambo, that's why we have module owners.

12 years agobugfix
Campbell Barton [Fri, 30 May 2008 01:59:15 +0000 (01:59 +0000)]
bugfix
* scene.object.context and scene.object.selected had broken get_item
funcs so scene.object.context[i]  returned the wrong object.
* aligning the view to an object (numpad*key), did not disable the
ortho view grid.
* long standing problem where opening a relative image would fail with
no message. BLI_convertstringcode was returning a path with /../../'s
that need to be cleaned before the path could be read, the path was also
invalid from unix shell so its not a blender path reading problem.

12 years agoReverted win installer to give 'current user' option only for Application Data.
Simon Clitherow [Thu, 29 May 2008 21:12:11 +0000 (21:12 +0000)]
Reverted win installer to give 'current user' option only for Application Data.
Added shfolder.lib linking for win9x SHGetFolderPath() support.

12 years agoTransform Orientations
Martin Poirier [Thu, 29 May 2008 19:10:09 +0000 (19:10 +0000)]
Transform Orientations

Edit Bone and Pose Bone can now be used as transform orientations

Also fix a bug with CTO comming from non-uniformally scaled meshes.

12 years ago-= Collisions =-
Daniel Genrich [Thu, 29 May 2008 14:23:08 +0000 (14:23 +0000)]
-= Collisions =-
Getting some weird results on moving fast edges. This is a backup commit, will try another thing

12 years agoAnother bugfix for Fill Bone Between Joints. Changed the order that bones are created...
Joshua Leung [Thu, 29 May 2008 06:14:53 +0000 (06:14 +0000)]
Another bugfix for Fill Bone Between Joints. Changed the order that bones are created between 'head'/'tail' points

12 years agoFill Bone Between Joints:
Joshua Leung [Thu, 29 May 2008 01:04:12 +0000 (01:04 +0000)]
Fill Bone Between Joints:

This tool now parents the newly created bone to whichever bone acted as it's 'head' point. It also sets the connected-to-parent flag.

12 years agoBug fix: [#13268] Crash when creating a new particle system
Janne Karhu [Wed, 28 May 2008 23:38:40 +0000 (23:38 +0000)]
Bug fix: [#13268] Crash when creating a new particle system
-Ugh.. sorry about that.. damn default cube with it's default material!

12 years agobugfix for own bug. mousewheel while playing in the sequencer crashes blender.
Campbell Barton [Wed, 28 May 2008 21:15:40 +0000 (21:15 +0000)]
bugfix for own bug. mousewheel while playing in the sequencer crashes blender.