13 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
And everything seems to be right now

13 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

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

13 years agosvn merge -r 15392:15551
Andre Susano Pinto [Sun, 13 Jul 2008 13:21:01 +0000 (13:21 +0000)]
svn merge -r 15392:15551

13 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

13 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

13 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

13 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

13 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.

13 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.

13 years agosvn merge -r 15292:15392
Andre Susano Pinto [Mon, 30 Jun 2008 22:57:52 +0000 (22:57 +0000)]
svn merge -r 15292:15392

13 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

13 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)

13 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)

13 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

13 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

13 years agosvn merge -r 15202:15292
Andre Susano Pinto [Fri, 20 Jun 2008 21:36:15 +0000 (21:36 +0000)]
svn merge -r 15202:15292

13 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.

13 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

13 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

13 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.

13 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

13 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

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

13 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

13 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)

13 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.

13 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).

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

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

13 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)

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

Forgot to free redcontext in IMB_free_anim...

13 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.

13 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 :)

13 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.

13 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

13 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

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

- 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

13 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

13 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

13 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:

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.

13 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)

13 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
b) audio multiplexing was active

[#13311] video_stream NULL when writing ffmpeg

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

13 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

13 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.

13 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

13 years agoMerging revisions 15020-15073 of cloth
Daniel Genrich [Sat, 31 May 2008 21:23:57 +0000 (21:23 +0000)]
Merging revisions 15020-15073 of

13 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.

13 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.

13 years agobugfix
Campbell Barton [Sat, 31 May 2008 16:22:07 +0000 (16:22 +0000)]
* [#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.

13 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.

13 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 :)

13 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

13 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.

13 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.


13 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


13 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.

13 years agobugfix
Campbell Barton [Fri, 30 May 2008 01:59:15 +0000 (01:59 +0000)]
* 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.

13 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.

13 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.

13 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

13 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

13 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.

13 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!

13 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.

13 years agoFix for bug #13224: vertex parenting didn't work correct with
Brecht Van Lommel [Wed, 28 May 2008 18:11:45 +0000 (18:11 +0000)]
Fix for bug #13224: vertex parenting didn't work correct with
multiple unconnected curves.

13 years agoFix for bug #13230: particle mirror could fail on some faces.
Brecht Van Lommel [Wed, 28 May 2008 17:55:06 +0000 (17:55 +0000)]
Fix for bug #13230: particle mirror could fail on some faces.

13 years agoSmall fix for last AO sphere sampling bugfix, didn't update
Brecht Van Lommel [Wed, 28 May 2008 17:42:03 +0000 (17:42 +0000)]
Small fix for last AO sphere sampling bugfix, didn't update
random sampling code as well.

13 years agoFix for bug: [#11680] "Col" option for particle systems does not work correctly with...
Janne Karhu [Wed, 28 May 2008 17:16:43 +0000 (17:16 +0000)]
Fix for bug: [#11680] "Col" option for particle systems does not work correctly with Mat IPOs
-the feature simply was not coded

13 years agobugfix for baking AO with greater then 16 samples, since it was being clamped in...
Campbell Barton [Wed, 28 May 2008 17:13:15 +0000 (17:13 +0000)]
bugfix for baking AO with greater then 16 samples, since it was being clamped in sphere_sampler but not in ray_ao_spheresamp that calls it. giving uneven art deco

13 years agobugfix
Campbell Barton [Wed, 28 May 2008 00:44:41 +0000 (00:44 +0000)]
* python api render() would clamp the endframe to a short.
* python api's render() and renderAnim() would not render compositing because the name they gave to RE_NewRender was NOT G.scene->, added comments to

13 years agoMerging revisions 14946-15020 of
Daniel Genrich [Tue, 27 May 2008 23:15:08 +0000 (23:15 +0000)]
Merging revisions 14946-15020 of

13 years ago-= Collisions -=
Daniel Genrich [Tue, 27 May 2008 22:46:57 +0000 (22:46 +0000)]
-= Collisions -=
1. Test for fast moving edges

13 years ago-= KDOP / Collisions =-
Daniel Genrich [Tue, 27 May 2008 22:42:38 +0000 (22:42 +0000)]
-= KDOP / Collisions =-
1. Fix for face with index=0 not handled

13 years agoEnabled EditMode on shrinkwrap modifier
Andre Susano Pinto [Tue, 27 May 2008 22:39:00 +0000 (22:39 +0000)]
Enabled EditMode on shrinkwrap modifier

13 years ago[#10223] a new object function to add vertex group from an armature
Martin Poirier [Tue, 27 May 2008 20:02:38 +0000 (20:02 +0000)]
[#10223] a new object function to add vertex group from an armature

Patch from Jean-Michel Soler (with slight modifs)

Small BPy feature to help script writers deal with armatures and vertex groups (calls the bone heat method to create and assign groups)

13 years agoFixed a compile error under msvc.
Andre Susano Pinto [Tue, 27 May 2008 18:40:33 +0000 (18:40 +0000)]
Fixed a compile error under msvc.

13 years agoAdded bvh nearest neighbour for nearest surface shrinkwrap
Andre Susano Pinto [Tue, 27 May 2008 18:32:23 +0000 (18:32 +0000)]
Added bvh nearest neighbour for nearest surface shrinkwrap

13 years agoAnother fix for bug #11140: explode modifier was still using more
Brecht Van Lommel [Tue, 27 May 2008 15:36:36 +0000 (15:36 +0000)]
Another fix for bug #11140: explode modifier was still using more
memory than needed.

13 years agobugfix for zero area faces and adding uv layers was not checking if the
Campbell Barton [Tue, 27 May 2008 15:14:35 +0000 (15:14 +0000)]
bugfix for zero area faces and adding uv layers was not checking if the
UV layer existed alredy.

13 years agobugfix, edges with no faces raised an error.
Campbell Barton [Tue, 27 May 2008 13:32:10 +0000 (13:32 +0000)]
bugfix, edges with no faces raised an error.

13 years agoFix for bug #12463: hair didn't draw z-buffered in wireframe mode.
Brecht Van Lommel [Tue, 27 May 2008 13:26:52 +0000 (13:26 +0000)]
Fix for bug #12463: hair didn't draw z-buffered in wireframe mode.
Instead of making it an exception compared to other objects which
don't draw z-buffered either, it now draws without lighting in the
wire color like it did before.

13 years agoFix for #12526: still didn't get dupli transform in envmaps correct.
Brecht Van Lommel [Tue, 27 May 2008 11:05:33 +0000 (11:05 +0000)]
Fix for #12526: still didn't get dupli transform in envmaps correct.

13 years agoFix for bug #12533: color picker didn't always redraw rgb/hsv/hex values.
Brecht Van Lommel [Tue, 27 May 2008 11:01:31 +0000 (11:01 +0000)]
Fix for bug #12533: color picker didn't always redraw rgb/hsv/hex values.

13 years agoremoving this script, should have been removed for 2.46 since the
Campbell Barton [Tue, 27 May 2008 09:46:35 +0000 (09:46 +0000)]
removing this script, should have been removed for 2.46 since the
functionality is avalable in the UV snap menu.

13 years agoFix for bug #12806: compositor nodes with use nodes disabled
Brecht Van Lommel [Tue, 27 May 2008 09:41:43 +0000 (09:41 +0000)]
Fix for bug #12806: compositor nodes with use nodes disabled
didn't properly redraw the node window on changes.

13 years agobugfix for view naming, pressing numpad5 would clear the V3D_OPP_DIRECTION_NAME flag...
Campbell Barton [Tue, 27 May 2008 08:51:47 +0000 (08:51 +0000)]
bugfix for view naming, pressing numpad5 would clear the V3D_OPP_DIRECTION_NAME flag even though it wont switch the view direction.

13 years agoFixed some compile erros under msvc (thanks lguillaume)
Andre Susano Pinto [Mon, 26 May 2008 21:57:53 +0000 (21:57 +0000)]
Fixed some compile erros under msvc (thanks lguillaume)
Fixed object dependency (thanks ZanQdo for pointing it out)
Make some code cleaner
(preparing for adding bvh trees on nearest surface)

13 years agobugfix, copy posebone constraints didnt update properly, canceling transform would...
Campbell Barton [Mon, 26 May 2008 20:43:35 +0000 (20:43 +0000)]
bugfix, copy posebone constraints didnt update properly, canceling transform would not reset the bone back to its original state. need to set teh flag "ob->pose->flag |=
POSE_RECALC", which is alredy done on adding a constraint.

13 years agobugfix for crasher from Cedric Paille via bf-committers.
Stephen Swaney [Mon, 26 May 2008 15:12:20 +0000 (15:12 +0000)]
bugfix for crasher from Cedric Paille via bf-committers.

13 years agoBug fix
Martin Poirier [Mon, 26 May 2008 12:52:28 +0000 (12:52 +0000)]
Bug fix

Force proportional editing flag off in object mode.

While it didn't have any effect on objects themselves, it could display the falloff mode (Smooth) in the header. The bug was purely cosmetic.

13 years agowhen cyclic is enabled the knots would always be generated with uniform nurbs but...
Campbell Barton [Mon, 26 May 2008 12:50:00 +0000 (12:50 +0000)]
when cyclic is enabled the knots would always be generated with uniform nurbs but after, cyclic nurbs would be incorrect if the bezier or endpoint u/v was set.
also replaced some numbers with constants.

13 years ago-= Collisions =-
Daniel Genrich [Mon, 26 May 2008 10:36:14 +0000 (10:36 +0000)]
-= Collisions =-
1. fix for collisions (were working better with selfcolls enabled, now generally better)

13 years ago* The displist would be uninitialized when nurbs bezieru/v was set and the order...
Campbell Barton [Mon, 26 May 2008 09:50:46 +0000 (09:50 +0000)]
* The displist would be uninitialized when nurbs bezieru/v was set and the order wasnt 3 or 4. add a function that checks nurbs can produce a valid line. check_valid_nurb_u/v
* when check_valid_nurb_u/v fails, no curve is allocated or drawn.
* knotsu/v could be NULL but some functions didn't check for this, make sure this is checked for everywhere.
* The interface didnt change check the order when the bezier u/v flag was set, added functions clamp_nurb_order_u/v that takes into accound the number of points and the bezier u/v flag.

13 years ago-= Cloth =-
Daniel Genrich [Mon, 26 May 2008 09:39:32 +0000 (09:39 +0000)]
-= Cloth =-
1. Fix selfcollisions (reported by nudelZ)

13 years agothe last selected nurbs curve lastnu could become an invalid pointer in places, acces...
Campbell Barton [Sun, 25 May 2008 23:05:13 +0000 (23:05 +0000)]
the last selected nurbs curve lastnu could become an invalid pointer in places, access this via functions now and store an index
rather then a pointer so if it becomes invalid it will just return a NULL pointer.

13 years agoCommit patch #9059 by gsrb3d
Diego Borghetti [Sun, 25 May 2008 21:11:34 +0000 (21:11 +0000)]
Commit patch #9059 by gsrb3d

Unnecesary include path in Makefile.

13 years agoBug fix in X-Mirror for armatures
Martin Poirier [Sun, 25 May 2008 21:05:13 +0000 (21:05 +0000)]
Bug fix in X-Mirror for armatures

When a bone in a mirrored chain wasn't named properly, it would leave the head or tail in an invalid state.

Now it applies the mirror to connected joints that are mirrored.

13 years agopatch [#11491] Fix for bug 11362: Blender.Draw.Image() method does not clip properly
Campbell Barton [Sun, 25 May 2008 16:39:57 +0000 (16:39 +0000)]
patch  [#11491] Fix for bug 11362: Blender.Draw.Image() method does not clip properly
fixing [#11362] Blender.Draw.Image() method does not clip properly
also return silently on zero zoomlevel rather then raising an error, only raise an error on negative values.

13 years ago== Sequencer ==
Peter Schlaile [Sun, 25 May 2008 16:07:32 +0000 (16:07 +0000)]
== Sequencer ==

[#12106] Memory leak in sequencer (>10MB/frame)

in parts: inner contents of meta strips are freed up after calculation
making more room for the cache.

Actually have to think of a mechanism, that remembers, which output
frames are asked for and caches only those.

13 years agoMerge BVH tree fixes from cloth branch
Andre Susano Pinto [Sun, 25 May 2008 15:47:54 +0000 (15:47 +0000)]
Merge BVH tree fixes from cloth branch
svn merge -r 14954:14963
svn merge -r 14954:14963

13 years agoAdded BVH nearest neighbour code, for now only works in 6-dop and finds the node...
Andre Susano Pinto [Sun, 25 May 2008 15:43:18 +0000 (15:43 +0000)]
Added BVH nearest neighbour code, for now only works in 6-dop and finds the node with the nearest bounding volume.
I'll work on making it more generic.
So far it querys faster than kdtree, but building the tree is slower.
And bvhtree NN uses an heuristic based on the last match.

Shrinkwrap (OBCube)24578 over (OBSuzanne)31658
build: 30.000000ms
query: 1360.000000ms

build: 140.000000ms
query: 490.000000ms

Shrinkwrap now uses bvhtree (binary tree, 6dop) for nearest vertex.