blender.git
11 years agosoc-2008-mxcurioni: merged changes to revision 15163
Maxime Curioni [Sun, 8 Jun 2008 20:12:29 +0000 (20:12 +0000)]
soc-2008-mxcurioni: merged changes to revision 15163

11 years agosoc-2008-mxcurioni: now supports current scene drawing (instead of fixed scene object...
Maxime Curioni [Sun, 8 Jun 2008 19:35:20 +0000 (19:35 +0000)]
soc-2008-mxcurioni: now supports current scene drawing (instead of fixed scene object), still with fixed style and fixed camera. Initialization is properly handled, which limits memory problems and speed-ups subsequent rendering. The viewing ratio should be correct now too. I also removed linking references to former lib3ds library path (caused some linking problems).

11 years agoBugfix #13666:
Joshua Leung [Sun, 8 Jun 2008 10:48:37 +0000 (10:48 +0000)]
Bugfix #13666:

Missing #include <stdio.h> in source/gameengine/Ketsji/KX_RayCast.cpp

11 years agoBugfix #13667: Outliner doesn't update when changing Parent in Transform Properties
Joshua Leung [Sun, 8 Jun 2008 10:46:30 +0000 (10:46 +0000)]
Bugfix #13667: Outliner doesn't update when changing Parent in Transform Properties

There was a missing refresh call for the Outliner.

11 years agoBugfix #13649: Segmentation fault when deleting object
Joshua Leung [Sun, 8 Jun 2008 09:35:05 +0000 (09:35 +0000)]
Bugfix #13649: Segmentation fault when deleting object

When the IPO editor was pinned, and the active object was changed, deleting the active object would cause a crash.

11 years agoAnother minor typo fix in button naming
Joshua Leung [Sun, 8 Jun 2008 03:39:24 +0000 (03:39 +0000)]
Another minor typo fix in button naming

11 years agoFix for incorrect tooltip (provided by JMS va bf-committers)
Joshua Leung [Sun, 8 Jun 2008 02:59:14 +0000 (02:59 +0000)]
Fix for incorrect tooltip (provided by JMS va bf-committers)

11 years agomade the quad split-direction options force splitting since planer quads with UV...
Campbell Barton [Sat, 7 Jun 2008 22:44:18 +0000 (22:44 +0000)]
made the quad split-direction options force splitting since planer quads with UV distortion would get very different results depending on the split direction.

11 years agoerror in customdata editmesh function,
Campbell Barton [Sat, 7 Jun 2008 18:16:23 +0000 (18:16 +0000)]
error in customdata editmesh function,
was using the active index when it should use the first index, not a big deal since CustomData_em_get_n isnt used in trunk yet.

11 years agoMarch 22 commit from Campbell to allow Lasso select in Compositor
Ton Roosendaal [Sat, 7 Jun 2008 15:06:00 +0000 (15:06 +0000)]
March 22 commit from Campbell to allow Lasso select in Compositor
with CTRL+LMB disabled the recently before added option to make
a Viewer connected to a node using same hotkey.

Now both work!

11 years agobugfix, memory leaks when getting particles and particle system loc/size/rot/life...
Campbell Barton [Fri, 6 Jun 2008 11:00:32 +0000 (11:00 +0000)]
bugfix, memory leaks when getting particles and particle system loc/size/rot/life (Just remember PyList_Append adds a reference! :) )

11 years agobugfix - Blender.GetPaths() was returning relative paths from libraries, but with...
Campbell Barton [Fri, 6 Jun 2008 08:58:08 +0000 (08:58 +0000)]
bugfix - Blender.GetPaths() was returning relative paths from libraries, but with no way to access the library path the the file is relative too. Check for these cases and make them absolute.
bpath also assigned one var it didnt need to.

11 years agofix 2dfilter problem on AMD64, Patches item #13626
Hamed Zaghaghi [Fri, 6 Jun 2008 01:28:51 +0000 (01:28 +0000)]
fix 2dfilter problem on AMD64, Patches item #13626

11 years agoAdded shadow baking
Campbell Barton [Thu, 5 Jun 2008 22:07:59 +0000 (22:07 +0000)]
Added shadow baking

11 years agoApricot feature, thats fit for trunk.
Campbell Barton [Thu, 5 Jun 2008 18:26:34 +0000 (18:26 +0000)]
Apricot feature, thats fit for trunk.
Baking would split non-planer quads in an unpredictable way, which is fine for rending but game engines often use a fixed order (0,1,2), (0,2,3) or (1,2,3) (1,3,0).
Added an option to use a fixed order when baking.

11 years agoBugfix: [#13619] Transform Rotate and Scale Strange
Martin Poirier [Thu, 5 Jun 2008 14:49:12 +0000 (14:49 +0000)]
Bugfix: [#13619] Transform Rotate and Scale Strange

view: noclip version of int and float projection. Also project from behind the view's position and return coherent values for near clipping

transform: use the above functions for 2d center and helpline drawing

NOTE: the result for centers behind the camera (in perspective) isn't 100% perfect in the case of rotations because they always use the centered view vector as rotation axis and not the one aligned with the 2d center. Changing this would not be desirable anyway. At least it's predictible now.

11 years agoadded checks for zero length strings when checking for the last character
Campbell Barton [Thu, 5 Jun 2008 13:12:17 +0000 (13:12 +0000)]
added checks for zero length strings when checking for the last character

11 years agoBLI_kdopbvh: crashed when traversing with little faces
Daniel Genrich [Thu, 5 Jun 2008 13:02:17 +0000 (13:02 +0000)]
BLI_kdopbvh: crashed when traversing with little faces

11 years ago* python sys.cleanpath() used strstr incorrectly, resulting in paths containing a...
Campbell Barton [Thu, 5 Jun 2008 13:02:00 +0000 (13:02 +0000)]
* python sys.cleanpath() used strstr incorrectly, resulting in paths containing a slash, always returning a path that ends with a slash.
* python Blender.GetPaths() - absolute=0 wasnt working
* BLI_cleanup_file and BLI_cleanup_file were treating the // prefix as a duplicate path, now ignores //
* BLI_convertstringcode was removing the trailing slash from a path
(tested these path functions didnt mess up with some of the peach files and with pointcache)

11 years agoimport_dxf.py script update: ver. 1.0.12b3-2008.06.05
Remigiusz Fiedler [Thu, 5 Jun 2008 12:31:16 +0000 (12:31 +0000)]
import_dxf.py script update: ver. 1.0.12b3-2008.06.05
bugfix: ob.name conflict with existing meshes (different ob.name/mesh.name)
refactor/support for LWPOLYLINEs

11 years agoCollisions: enabling self collision quality setting again (request by Nudel)
Daniel Genrich [Thu, 5 Jun 2008 11:08:51 +0000 (11:08 +0000)]
Collisions: enabling self collision quality setting again (request by Nudel)

11 years agoBugfix for exploding cloth collisions
Daniel Genrich [Thu, 5 Jun 2008 10:52:52 +0000 (10:52 +0000)]
Bugfix for exploding cloth collisions

11 years agobugfix introduced in own commit 15055 - [#13621] Cloth cache files are in same direct...
Campbell Barton [Thu, 5 Jun 2008 10:43:53 +0000 (10:43 +0000)]
bugfix introduced in own commit 15055 - [#13621] Cloth cache files are in same directory as .blend

11 years agonumbutton python expression evaluation used driver dictionary, when EnableScriptlinks...
Campbell Barton [Wed, 4 Jun 2008 22:32:15 +0000 (22:32 +0000)]
numbutton python expression evaluation used driver dictionary, when EnableScriptlinks was disabled number
button input didnt
work. narrow down this test to the part of the pydriver module init that uses a blender textblock as a module. This should
should reload the pydriver dict whenever the "EnableScriptlinks" state changes. but for now working numbuttons is priority.

11 years agoIssue jms was having with # else on msvc. Seems odd but easy to fix.
Kent Mein [Wed, 4 Jun 2008 18:11:48 +0000 (18:11 +0000)]
Issue jms was having with # else on msvc.  Seems odd but easy to fix.

Kent

11 years agosvn merge -r15118:15119 https://svn.blender.org/svnroot/bf-blender/branches/soc...
Campbell Barton [Wed, 4 Jun 2008 16:38:55 +0000 (16:38 +0000)]
svn  merge  -r15118:15119 https://svn.blender.org/svnroot/bf-blender/branches/soc-2008-quorn

11 years agoPython API object.parentVertexIndex - access vertex parent indicies
Campbell Barton [Wed, 4 Jun 2008 16:19:15 +0000 (16:19 +0000)]
Python API object.parentVertexIndex - access vertex parent indicies

11 years agobugfix #13618 - 2d filters + GLSL python scripts
Hamed Zaghaghi [Wed, 4 Jun 2008 02:54:42 +0000 (02:54 +0000)]
bugfix #13618 - 2d filters + GLSL python scripts

11 years agoFix BGE bug #13605: GameEngine corrupts Pose data
Benoit Bolsee [Tue, 3 Jun 2008 22:54:24 +0000 (22:54 +0000)]
Fix BGE bug #13605: GameEngine corrupts Pose data

11 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

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

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

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

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

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

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

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

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

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

11 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

11 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

11 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

11 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

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

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

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

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

11 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

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

11 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

11 years agoMerging revisions 15020-15073 of https://svn.blender.org/svnroot/bf-blender/trunk... cloth
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

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

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

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

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

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

11 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

11 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

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

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

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

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

11 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

11 years agosoc-mx-curioni: resolved the rendering issue. In the previous steps, I was only rende...
Maxime Curioni [Thu, 29 May 2008 11:41:06 +0000 (11:41 +0000)]
soc-mx-curioni: resolved the rendering issue. In the previous steps, I was only rendering the strokes, not the toatl scene (explaining why the render color was being inverted). i added a call to the view's draw() method. Now, the rendering steps are complete and display both the object and the silhouette.

11 years agosoc-2008-mxcurioni: made the image rendering faster by reading the frame buffer direc...
Maxime Curioni [Thu, 29 May 2008 09:00:49 +0000 (09:00 +0000)]
soc-2008-mxcurioni: made the image rendering faster by reading the frame buffer directly into the RenderResult's ImBuf structure, removing the need to copy it manually

11 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

11 years agosoc-2008-mxcurioni: updated SConscript file for SWIG module compilation and linking...
Maxime Curioni [Thu, 29 May 2008 02:31:36 +0000 (02:31 +0000)]
soc-2008-mxcurioni: updated SConscript file for SWIG module compilation and linking under Linux

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

11 years agosoc-2008-mxcurioni: First render ! It should render the teapot upside down on a black...
Maxime Curioni [Thu, 29 May 2008 00:27:09 +0000 (00:27 +0000)]
soc-2008-mxcurioni: First render ! It should render the teapot upside down on a black background. The correction was made by following Yafray's rendering and display implementation, which is very clear.

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

11 years agosoc-2008-mxcurioni: corrected GLStrokeRender::preparePaper function for paper texture...
Maxime Curioni [Wed, 28 May 2008 21:19:56 +0000 (21:19 +0000)]
soc-2008-mxcurioni: corrected GLStrokeRender::preparePaper function for paper texture loading. The canvas view now has its frame properly initialized to fixed dimensions. When the Freestyle render is executed, the render is displayed for a fraction of a second and is then erased by a standard gray background. I have to analyze what command I need to call to keep the result on display.

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

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

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

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

11 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

11 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
results.

11 years agobugfix
Campbell Barton [Wed, 28 May 2008 00:44:41 +0000 (00:44 +0000)]
bugfix
* 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->id.name, added comments to
G.scene->id.name

11 years agoMerging revisions 14946-15020 of https://svn.blender.org/svnroot/bf-blender/trunk...
Daniel Genrich [Tue, 27 May 2008 23:15:08 +0000 (23:15 +0000)]
Merging revisions 14946-15020 of https://svn.blender.org/svnroot/bf-blender/trunk/blender

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

11 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

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

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

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

11 years agosoc-2008-mxcurioni: updated SWIG module linking instruction
Maxime Curioni [Tue, 27 May 2008 14:49:28 +0000 (14:49 +0000)]
soc-2008-mxcurioni: updated SWIG module linking instruction

11 years agosoc-2008-mxcurioni: Freestyle execution now works flawlessly (Python runtime loads...
Maxime Curioni [Tue, 27 May 2008 14:13:16 +0000 (14:13 +0000)]
soc-2008-mxcurioni: Freestyle execution now works flawlessly (Python runtime loads appropriate modules, using SWIG wrapper), but does not render anything yet (render window OpenGL context not used yet). Currently, the SWIG wrapper library needs to be manually compiled (see SWIG section in  source/blender/freestyle/SConscript for details). I am missing some knowledge on scons to create it automatically from the SConscript. Once I find that information, I'll make it automatic and for different platforms.

I also corrected a simple GLStrokeRenderer bug for texture loading (not in original Freestyle code). Apparently, IMB_loadiffname doesn't recognize the paper's texture depth so a work-around will have to be found.

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

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

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

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

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

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

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

11 years agosoc-2008-mxcurioni: PythonInterpreter now properly handles its initialization (in...
Maxime Curioni [Tue, 27 May 2008 03:29:43 +0000 (03:29 +0000)]
soc-2008-mxcurioni: PythonInterpreter now properly handles its initialization (in accordance with original Freestyle code). This is achieved by creating a temporary Text structure, adding the required import and appending the necessary Python path. The text is executed using the BPY_txt_do_python_Text command.

When Freestyle is run within Blender, it should not crash; the Python interpreter should report an ImportError on _Freestyle (the SWIG wrapper).

11 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.
back
to

11 years agosoc-2008-mxcurioni: PythonInterpreter works, using Blender's Python functions. The...
Maxime Curioni [Mon, 26 May 2008 19:52:55 +0000 (19:52 +0000)]
soc-2008-mxcurioni: PythonInterpreter works, using Blender's Python functions. The drawing still does not produce anything because the SWIG module wrapper is missing

11 years agosoc-2008-mxcurioni: Freestyle compiles but crashes at runtime because of the Python...
Maxime Curioni [Mon, 26 May 2008 16:19:30 +0000 (16:19 +0000)]
soc-2008-mxcurioni: Freestyle compiles but crashes at runtime because of the Python environment.

I analyzed the crash with gdb and PyImport_AddModule ("__main__") in Python/import.c:320 seems responsible for the crash: apparently, "__main__" is not found and causes the error "No such file or directory".

I have to figure out what's wrong with the current configuration, especially whether Freestyle's PythonInterpreter can be used as is. I am going to see whether it's just quicker to use Blender's functions.

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

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

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