blender.git
14 years agoForgot Cineon lib in Makefile :)
Ton Roosendaal [Sun, 12 Mar 2006 19:48:51 +0000 (19:48 +0000)]
Forgot Cineon lib in Makefile :)

14 years agoSequencer now outputs float buffers to render too, when available.
Ton Roosendaal [Sun, 12 Mar 2006 19:00:48 +0000 (19:00 +0000)]
Sequencer now outputs float buffers to render too, when available.

14 years ago==SCons==
Nathan Letwory [Sun, 12 Mar 2006 15:23:56 +0000 (15:23 +0000)]
==SCons==

* cineon support enabled for SCons (part 2 of fix)

14 years ago==SCons==
Nathan Letwory [Sun, 12 Mar 2006 15:23:00 +0000 (15:23 +0000)]
==SCons==

* first part of cineon fix commit - after next commit it'll compile also with SCons

14 years agoHalf fix for colorpicker: after using sliders, the redraw callback was
Ton Roosendaal [Sun, 12 Mar 2006 14:51:33 +0000 (14:51 +0000)]
Half fix for colorpicker: after using sliders, the redraw callback was
too late... moved it one line up. :)

Still unknown; why doesn't HSV color field not redraw?

14 years agoNew: Import/Export of Cineon and DPX image files. The first is Kodak's
Ton Roosendaal [Sun, 12 Mar 2006 14:11:23 +0000 (14:11 +0000)]
New: Import/Export of Cineon and DPX image files. The first is Kodak's
standard for film scanning, 10 bits/channel and logarithmic. DPX is
derived from Cineon as the ANSI/SMPTE industry standard.
DPX supports 16 bits color/channel, linear as well as logarithmic.

Code has been gratefully copied from CinePaint and was integrated in
Blender by Joe Eagar.

According to CinePaint's dev Robin Rowe the DPX code defaults to log
colorspace. Can't find in the code clues yet how to enable/disable that.
However, tests with write/read of DPX seems to show no visible loss by
log conversion code. Might be because it uses the entire 16 bit range...

CinePaint dpx files have been succesfully imported in a Quantel IQ HD/2K
finishing/grading set without problem, so for now I guess we can
use it! :)

Changes in code: added tests for image magic numbers before entering
the actual reading code. Prevents error prints, and makes it faster too.
(Note; this because Blender doesn't check for extensions, but calls
reading functions on every file until one accepts it. :)

14 years agoPressing Tkey in empty action window crashed... bad pointer handling.
Ton Roosendaal [Sun, 12 Mar 2006 13:03:40 +0000 (13:03 +0000)]
Pressing Tkey in empty action window crashed... bad pointer handling.

14 years agoA couple of render improvements;
Ton Roosendaal [Sun, 12 Mar 2006 11:51:56 +0000 (11:51 +0000)]
A couple of render improvements;

- Bug fix: the upper tile in a collumn for Panorama render didn't put the
  mainthread to sleep properly. Now panorama renders 25% faster if you had
  set Y-Parts to 4.

- Enabling Compositing in Scene for first time now adds a "Composite" node
  too, so render output gets applied.
- An attempt to render with "Do Composite" without "Composite" node will
  throw an error and stops rendering. In background mode it will just not
  render at all, and print errors.
- Errors that prevent rendering now give a popup menu again.
- Having MBlur or Fields option on will now normally render, but with an
  error print in console (not done yet...)

14 years agoAdded security to vectorbuffer code... before it gets used, it checks
Ton Roosendaal [Sat, 11 Mar 2006 23:10:13 +0000 (23:10 +0000)]
Added security to vectorbuffer code... before it gets used, it checks
for leftover initialized max-speed values, and clears it. Also gives
a giant print then... I want to know when it happens, and howto redo!

(error print = "tsk tsk! PASS_VECTOR_MAX left in buffer...")

14 years agoAnd now the studio is rendering panoramas... finding out that vectorblur
Ton Roosendaal [Sat, 11 Mar 2006 21:46:19 +0000 (21:46 +0000)]
And now the studio is rendering panoramas... finding out that vectorblur
also could use correction for it.
The current perspective projected blur would look in 180 degree view like
this:

http://www.blender.org/bf/p2.jpg
(circle of planes rotating around camera)

After some fight with my rusty highschool gonio I got it fixed; nice
cylindrical projected speedvectors:

http://www.blender.org/bf/p1.jpg

14 years ago==UV Editor==
Brecht Van Lommel [Sat, 11 Mar 2006 21:09:32 +0000 (21:09 +0000)]
==UV Editor==

Ctrl+RMB in local sticky mode now selects as if in sticky mode. This used
to work only in non-sticky mode, but now with local sticky as default,
it's nice to have this functionality working there also.

14 years agoFix for messy commits in attempt to fix groups wire colors...
Ton Roosendaal [Sat, 11 Mar 2006 18:51:41 +0000 (18:51 +0000)]
Fix for messy commits in attempt to fix groups wire colors...

- if you add new theme colors, you need to initialize them correctly and
  add that in the usiblender.c version patching for saved themes
- the code for detecting group membership was highly confusing
- group colors were even used for non-groups

Further; I didnt add group theme colors yet, that's not a bug. It's a todo
item I preferred to tackle with having a decent wirecolor system once.

14 years agoBugfix #3995: NMesh.GetRawFromObject() would segfault sometimes if object
Ken Hughes [Sat, 11 Mar 2006 18:18:32 +0000 (18:18 +0000)]
Bugfix #3995: NMesh.GetRawFromObject() would segfault sometimes if object
was in editmode, due to undefined derivedmesh data.

14 years agoFix for bug #3739:
Brecht Van Lommel [Sat, 11 Mar 2006 17:15:10 +0000 (17:15 +0000)]
Fix for bug #3739:

Drawing of multiple materials in texture mode, if there is no texface,
didn't use correct materials.

14 years agoFix for bug #3997:
Brecht Van Lommel [Sat, 11 Mar 2006 16:39:07 +0000 (16:39 +0000)]
Fix for bug #3997:

Rotating UV coordinates with snapping was image aspect ratio 'corrected'
for non square images. Only snapping for translation should be affected
by the aspect ratio.

14 years agoFix for bug #3802: Display problems with modifiers and uv face select
Brecht Van Lommel [Sat, 11 Mar 2006 16:13:10 +0000 (16:13 +0000)]
Fix for bug #3802: Display problems with modifiers and uv face select

The bug reported here was already fixed some weeks ago, but there were
more issues. Modifier display in face select and paint modes was never
properly finished.

This fixes some small drawing update glitches, and only allows modifiers
that preserve a mapping to the original mesh to be applied. Otherwise
selection and painting isn't even possible.

14 years ago===Python API===
Ken Hughes [Sat, 11 Mar 2006 16:00:07 +0000 (16:00 +0000)]
===Python API===
A bug fix and an enhancement:
   * fixed bug when adding or deleting faces from a mesh which has
     vertexColors; mesh->mcol was not being updated
   * changed edges.extend() and faces.extend() to accept integer vertex
     indices in addition to MVerts; this should make scripts simpler and
     in general make things run faster

14 years agochanges in darwin config.py to reflect Nathan changes & better defaults.
Jean-Luc Peurière [Sat, 11 Mar 2006 13:33:52 +0000 (13:33 +0000)]
changes in darwin config.py to reflect Nathan changes & better defaults.

Important note : for gcc3 linking you may have to remove -fexceptions
from LINKFLAGS but this is mandatory for gcc4

14 years ago==SCons==
Nathan Letwory [Sat, 11 Mar 2006 13:15:39 +0000 (13:15 +0000)]
==SCons==
* a comma was missing from a list :S

14 years agoWith the commit last week to have curve bevels nice circular (when no
Ton Roosendaal [Sat, 11 Mar 2006 12:34:50 +0000 (12:34 +0000)]
With the commit last week to have curve bevels nice circular (when no
front/back is selected), the UV coordinates for curves should also be
corrected.
This commit re-uses the same code as for Nurbs, to make sure UV coordinates
wrap around nicely.

BUT! I've noticed that Daniel's commit of august in this code actually
broke this UV correction... in his craze to cleanup old code, he missed
the actual functionality. Meaning that in 2.40 and 2.41, "UV orco" texture
coordinates wrap around ugly in Nurbs Surfaces, something that was fixed
in NaN days.

Got no time for tracker now... but I'm sure it's in there! :)

14 years ago==scripts==
Tom Musgrove [Sat, 11 Mar 2006 10:51:06 +0000 (10:51 +0000)]
==scripts==

removing obsolete and redundant scripts from the repository

14 years ago==scripts==
Tom Musgrove [Sat, 11 Mar 2006 10:45:48 +0000 (10:45 +0000)]
==scripts==

updated directx8 exporter by Ben Omari

14 years ago==oops==
Tom Musgrove [Sat, 11 Mar 2006 03:23:57 +0000 (03:23 +0000)]
==oops==

on reading the function looks like it is instead meant to select isolated edges and verts - doh! so changing back to previous...

14 years ago==bug fix==
Tom Musgrove [Sat, 11 Mar 2006 02:44:44 +0000 (02:44 +0000)]
==bug fix==

3773 - toolbox function name of 'select - non-triangles/quads'

changed to 'select - non-triangle/quad faces'

for clarity (user expected it to select verts and edges from the name)

14 years agoBugfix: Object.link() was not correctly handling object/datablock material
Ken Hughes [Sat, 11 Mar 2006 01:17:21 +0000 (01:17 +0000)]
Bugfix: Object.link() was not correctly handling object/datablock material
counting, causing "Error Totblock" messages on exit due to memory not being
freed.  Added a call to test_object_materials() after the new data is linked.

14 years agoBugfix #3898: Scene.unlink() was not decrementing the datablock user count.
Ken Hughes [Sat, 11 Mar 2006 01:14:33 +0000 (01:14 +0000)]
Bugfix #3898: Scene.unlink() was not decrementing the datablock user count.

14 years ago==SCons==
Nathan Letwory [Fri, 10 Mar 2006 22:50:27 +0000 (22:50 +0000)]
==SCons==

* Small CVS surgery, winblender_scons.rc renamed to winblender.rcscons on repository
  and change also in this SConscript. In case it was not yet clear as why there is a second
  resource file with the same icons: the SCons RES() function needs the paths to be able
  to generate the proper resource object. Change suggested by Joseph Eagar to prevent
  problems with the Makefiles.

14 years ago===Python API===
Ken Hughes [Fri, 10 Mar 2006 21:39:14 +0000 (21:39 +0000)]
===Python API===
Additions to BezTriple API: complete get/set access to all BezTriple settings
(knot and handles points, handle types, tilt/alfa, hide, weight and selection
status).

14 years agoBugfix #3895: Call to PyString_FromString() wasn't being Py_DECREF()'ed,
Ken Hughes [Fri, 10 Mar 2006 21:05:30 +0000 (21:05 +0000)]
Bugfix #3895: Call to PyString_FromString() wasn't being Py_DECREF()'ed,
causing a memory leak.

14 years ago==SCons==
Nathan Letwory [Fri, 10 Mar 2006 20:47:34 +0000 (20:47 +0000)]
==SCons==

+ Joseph Eagar provided a patch that re-enables the application icon for Blender. Hurray!

14 years ago==SCons==
Nathan Letwory [Fri, 10 Mar 2006 20:11:48 +0000 (20:11 +0000)]
==SCons==

* change CCFLAGS to CXXFLAGS and CFLAGS to CCFLAGS to be better
  for SCons
- removed old cruft from ancient system

14 years agofix for bug 3970
Joilnen Leite [Fri, 10 Mar 2006 19:49:25 +0000 (19:49 +0000)]
fix for bug 3970
.

14 years agofix bug 3970
Joilnen Leite [Fri, 10 Mar 2006 19:47:36 +0000 (19:47 +0000)]
fix bug 3970
.

14 years agofix for bug 3970
Joilnen Leite [Fri, 10 Mar 2006 18:52:49 +0000 (18:52 +0000)]
fix for bug 3970
.

14 years agoFixed a mistake where the hrad/tail radius UI numinput didnt check weather the bobne...
Campbell Barton [Fri, 10 Mar 2006 02:55:18 +0000 (02:55 +0000)]
Fixed a mistake where the hrad/tail radius UI numinput didnt check weather the bobne was connected before using the parents tail value for its head.

14 years ago==SCons==
Nathan Letwory [Thu, 9 Mar 2006 23:48:56 +0000 (23:48 +0000)]
==SCons==
* if you all look to the left, you won't see that on the right BF_PRIORITYLIST
  was spelled BF_PRIORITY_LIST twice.

14 years agoVectorblur fix:
Ton Roosendaal [Thu, 9 Mar 2006 22:50:36 +0000 (22:50 +0000)]
Vectorblur fix:

To be able to make good masks, it is important to separate the non moving
pixels from the moving ones. With fixes I did 2 weeks ago, a floating
point inaccuracy causes speed vectors to be not always zero perfectly...
and the masks to get badly shaped.

It was clearly visible on moving objects over a non-moving background.
Current commit includes minimal threshold to force speed to zero. Images
are nice and smooth again. :)

Bad:
http://www.blender.org/bf/vb1.jpg
Good again:
http://www.blender.org/bf/vb2.jpg

14 years ago-> Path Select Tool
Geoffrey Bantle [Thu, 9 Mar 2006 22:44:14 +0000 (22:44 +0000)]
-> Path Select Tool
Rewrote path select tool to use binary heap implementation from BLI_heap.h. Incredible speedup! Thanks to Brecht for the tip.

14 years agoCommit from campbell of march 5 crashes when no object was active and you
Ton Roosendaal [Thu, 9 Mar 2006 22:05:53 +0000 (22:05 +0000)]
Commit from campbell of march 5 crashes when no object was active and you
do a move to layer...

14 years ago==compile fix==
Tom Musgrove [Thu, 9 Mar 2006 20:14:18 +0000 (20:14 +0000)]
==compile fix==

ffmpeg compile fix for cygwin by Peter

14 years agoFixed bug "Bug Tracker item #3988", where <builtin> TTF (datatoc_bfont_ttf)
Mika Saari [Thu, 9 Mar 2006 16:57:19 +0000 (16:57 +0000)]
Fixed bug "Bug Tracker item #3988", where <builtin> TTF (datatoc_bfont_ttf)
wasn't handled as UTF-8 font but like normal <builtin> font. This caused
Blender to crash.

14 years agoUncommitted change of Campbell 9 days ago... the rest of the logic
Ton Roosendaal [Thu, 9 Mar 2006 15:56:08 +0000 (15:56 +0000)]
Uncommitted change of Campbell 9 days ago... the rest of the logic
editor now screws up... smells like a bug in alignment code, will need
to be checked on.

(Campbell: you sure checked the buttons before committing this? ;)

14 years agoImproved CTRL+G grouping menu; it now offers a choice to add to any
Ton Roosendaal [Thu, 9 Mar 2006 15:18:53 +0000 (15:18 +0000)]
Improved CTRL+G grouping menu; it now offers a choice to add to any
existing group, using a 2nd menu.

14 years agoBugfix... very ancient one even. When you use multiple screens in a project
Ton Roosendaal [Thu, 9 Mar 2006 12:48:13 +0000 (12:48 +0000)]
Bugfix... very ancient one even. When you use multiple screens in a project
with each having different scenes, changing screens didn't call the proper
set_scene() call, which left quite some stuff improperly initialized.

With depsgraph code even causes crashing.

14 years agoAO did not include own material rgb in calculus, causing too bright AO.
Ton Roosendaal [Thu, 9 Mar 2006 12:20:00 +0000 (12:20 +0000)]
AO did not include own material rgb in calculus, causing too bright AO.
Error caused by WIP on rendering passes.

14 years agoWhen imbuf has both float and byte rects, the scale-fast function crashed.
Ton Roosendaal [Thu, 9 Mar 2006 11:25:20 +0000 (11:25 +0000)]
When imbuf has both float and byte rects, the scale-fast function crashed.

14 years ago<sob>dropping OpenGL float buffer drawing... it seems that this isn't
Ton Roosendaal [Thu, 9 Mar 2006 10:13:37 +0000 (10:13 +0000)]
<sob>dropping OpenGL float buffer drawing... it seems that this isn't
a well supported feature for glDrawPixels(), especially on ATIs crashes
happen with it irregularly. (note; drawing float is a regular opengl 1.0
feature...).

Now all scanline/part updates in renderwindow is converted to 32 bits
before drawing, also the in the UV Image window only 32 bits RGBA is drawn.

What is still float: drawing the final image after render in renderwindow,
and drawing the Z or Alpha in renderwindow and UV image.

Of course we need to test this first. :) Will await reports...

14 years ago==compile fix==
Tom Musgrove [Thu, 9 Mar 2006 00:34:49 +0000 (00:34 +0000)]
==compile fix==

added RE_RenderLayer to stubs.c so we can compile gameengine

14 years agoCompositing goodie: ESC now works to stop, but it will finish the node it
Ton Roosendaal [Wed, 8 Mar 2006 21:12:48 +0000 (21:12 +0000)]
Compositing goodie: ESC now works to stop, but it will finish the node it
was working on.

14 years agoBaking all selected softbody: press ctrl+b in 3d window!
Ton Roosendaal [Wed, 8 Mar 2006 17:45:32 +0000 (17:45 +0000)]
Baking all selected softbody: press ctrl+b in 3d window!

14 years ago<blush>Nice work on renderlayer control yesterday, but... then you should
Ton Roosendaal [Wed, 8 Mar 2006 17:27:20 +0000 (17:27 +0000)]
<blush>Nice work on renderlayer control yesterday, but... then you should
also change this line in creator.c dude!</blush>

14 years agoBugfix: Sofbody baking included the 'start frame' for the object in
Ton Roosendaal [Wed, 8 Mar 2006 17:00:48 +0000 (17:00 +0000)]
Bugfix: Sofbody baking included the 'start frame' for the object in
calculus, causing empty keys in the bake, and crashes.

14 years agoCompositor now checks for cyclic nodes too, and skips them while executing.
Ton Roosendaal [Wed, 8 Mar 2006 13:06:32 +0000 (13:06 +0000)]
Compositor now checks for cyclic nodes too, and skips them while executing.
This prevents eternal loops. It prints error message in console.

Note that the Shader nodes dont need this, since they're just executed in
presorted order. The compositing nodes use threading, with a call asking
for the next job... if this includes cyclic nodes, the 'next job' will
always return  NULL.

14 years agoTest with render window not drawing in frontbuffer anymore. Only enabled
Ton Roosendaal [Wed, 8 Mar 2006 12:28:46 +0000 (12:28 +0000)]
Test with render window not drawing in frontbuffer anymore. Only enabled
now for OSX though... that's where we can verify if the irregular crashes
will stop (ATI issue, nvidia seems to be OK)

If ATI users for other platforms want to check; just extend the two
#ifdefs I added for frontbuffer drawing. Note; the syntax then becomes

#if defined(__APPLE__) || defined(_YOUR_PLATFORM_)

14 years agoQuick feature: "Around Individual Centers" now works in editmode mesh, but
Ton Roosendaal [Wed, 8 Mar 2006 11:07:49 +0000 (11:07 +0000)]
Quick feature: "Around Individual Centers" now works in editmode mesh, but
only in Face-Select mode. It then uses for rotate and scaling the face
center itself as reference.

Code uses a loop-in-loop to find the face that belongs to the vertex...
means it will be slow with operations on 10k or more faces. Acceptable
for now, will make it nicer later. :)

14 years ago-> Path Select Tool
Geoffrey Bantle [Wed, 8 Mar 2006 03:28:17 +0000 (03:28 +0000)]
-> Path Select Tool

Added a new tool to the 'W-Key' popup menu in mesh editmode, 'Path Select'.
When exactly two vertices are selected, 'Path Select' will find the shortest
path of vertices between them. There are two methods for determining
the shortest path, one that finds the path with shortest physical
distance, and one that finds the path with shortest topological distance.

Examples:

Original Selection
http://www.umsl.edu/~gcbq44/pathselect.jpg

Path Select - Edge Length
http://www.umsl.edu/~gcbq44/pathselect-shortestphysical.jpg

Path Select - Topological
http://www.umsl.edu/~gcbq44/pathselect-topological.jpg

The tool uses a straightforward implementation of Dijsktra's algorithm
and may be a bit slow on extremely large meshes. As a speedup you can
hide the parts of the mesh that you are not working on and they will
not be searched.

14 years agoSmall fix for surviving changes in library data.
Ton Roosendaal [Tue, 7 Mar 2006 21:50:26 +0000 (21:50 +0000)]
Small fix for surviving changes in library data.

In case an armature object lost its object-data, it crashed in trying
to link the pose data.

14 years agoCompositing workflow goodie; each 'render result' node now has a button
Ton Roosendaal [Tue, 7 Mar 2006 21:26:37 +0000 (21:26 +0000)]
Compositing workflow goodie; each 'render result' node now has a button
option to re-render that specific node. Also works for nodes using other
scenes.

14 years agoFixes a small warning, when compiling without ffmpeg
Peter Schlaile [Tue, 7 Mar 2006 20:28:05 +0000 (20:28 +0000)]
Fixes a small warning, when compiling without ffmpeg

14 years agothis patch features several cleanups and bugfixes for the sequencer:
Peter Schlaile [Tue, 7 Mar 2006 20:01:12 +0000 (20:01 +0000)]
this patch features several cleanups and bugfixes for the sequencer:
- blur works again (this was a serious bug in gamwarp...)
- seperates all sequence effects into a seperate file with a clean interface
- thereby fixing some obscure segfaults
- seperates the scope views into a seperate file
- adds float support to all effects and scope views
- removes a bad level call to open_plugin_seq
- FFMPEG seeking improved a lot.
- FFMPEG compiles with debian sarge version cleanly
- Makes hdaudio seek and resample code really work

14 years agoQuickfix: appending scenes from a file, won't expand the other scenes
Ton Roosendaal [Tue, 7 Mar 2006 14:47:41 +0000 (14:47 +0000)]
Quickfix: appending scenes from a file, won't expand the other scenes
when used in a compositor node... this is quite useless, and invokes
importing all data.

14 years agoCTRL+C Copy Menu now includes modifiers for Curve objects.
Ton Roosendaal [Tue, 7 Mar 2006 13:29:25 +0000 (13:29 +0000)]
CTRL+C Copy Menu now includes modifiers for Curve objects.

14 years agoCurves with bevel, but without front/back or extrude depth, now render
Ton Roosendaal [Mon, 6 Mar 2006 21:44:08 +0000 (21:44 +0000)]
Curves with bevel, but without front/back or extrude depth, now render
as a full circle instead of 2 halves.

14 years ago==SCons==
Nathan Letwory [Mon, 6 Mar 2006 14:50:08 +0000 (14:50 +0000)]
==SCons==
* BF_DEBUG_FLAGS was missing for the allowed cmd-line arguments. Oops!

14 years agoRender option "Single Layer" now keeps the already rendered other layers,
Ton Roosendaal [Mon, 6 Mar 2006 13:50:07 +0000 (13:50 +0000)]
Render option "Single Layer" now keeps the already rendered other layers,
and after rendering restores them. Also means this option works for
compositing now.

14 years agoquick fix for Python armature CVS making bones with no layers, therefor being invisible.
Campbell Barton [Mon, 6 Mar 2006 02:07:39 +0000 (02:07 +0000)]
quick fix for Python armature CVS making bones with no layers, therefor being invisible.
Should realy have Bone/Layer access through python.

14 years agoRather then just complaining it cant be done, made M move objects out of the current...
Campbell Barton [Mon, 6 Mar 2006 01:11:56 +0000 (01:11 +0000)]
Rather then just complaining it cant be done, made M move objects out of the current localview.
This is quicker then switching to non localview, de-selecting and going back into localview.
  Test by pressing Mkey in localview.

14 years agoAdded CTRL+L link copy and SHIFT+L link select for group-duplicators.
Ton Roosendaal [Sun, 5 Mar 2006 22:31:32 +0000 (22:31 +0000)]
Added CTRL+L link copy and SHIFT+L link select for group-duplicators.

14 years agoRemoves warning in drawtext.c
Ricki Myers [Sun, 5 Mar 2006 19:56:31 +0000 (19:56 +0000)]
Removes warning in drawtext.c

14 years agoAdds menu item in text editor under format menu to convert whitespace to
Ricki Myers [Sun, 5 Mar 2006 19:50:14 +0000 (19:50 +0000)]
Adds menu item in text editor under format menu to convert whitespace to
Spaces or to tabs.
Adds function void convert_tabs(struct SpaceText *st, int tab)
int tab is eather 0 or 1; 1 if converting to tabs
I was going to make this auto run when running a script but did not know what that would do to the GE or any thing else.

14 years agofix for bug #3655
Jean-Luc Peurière [Sun, 5 Mar 2006 18:34:49 +0000 (18:34 +0000)]
fix for bug #3655
adding a DAG update like in other implantations of the call supress
the crash on remove double.

added the undo push too to be consistant

14 years agoFix for appending data from other files: if this appended data
Ton Roosendaal [Sun, 5 Mar 2006 17:35:06 +0000 (17:35 +0000)]
Fix for appending data from other files: if this appended data
again was linking from another file, this relationship was not
corrected (lib_indirect -> lib_extern), so also not saved in a file.

14 years ago=== code cleanup ===
Andrea Weikert [Sun, 5 Mar 2006 16:36:32 +0000 (16:36 +0000)]
=== code cleanup ===
Replacing strcpy with BLI_strncpy where it's safe.
Was part of patch #2840 - thanks Eric Forsythe.

14 years agoIt looks like Irix works alright with the /dev/zero trick for mmap().
Chris Want [Sun, 5 Mar 2006 14:58:56 +0000 (14:58 +0000)]
It looks like Irix works alright with the /dev/zero trick for mmap().
I had to include fcntl.h for Irix to get symbol O_RDWR.

14 years agoSome C conpilers only want variables to be initialized with constants,
Chris Want [Sun, 5 Mar 2006 14:56:51 +0000 (14:56 +0000)]
Some C conpilers only want variables to be initialized with constants,
and will not allow variables to be initialized with the contents of
other variables.

14 years agoUngrouping a Node in Compositor left uiBlock pointers unchanged in
Ton Roosendaal [Sun, 5 Mar 2006 14:37:46 +0000 (14:37 +0000)]
Ungrouping a Node in Compositor left uiBlock pointers unchanged in
nodes, causing crashes evidently. :)

14 years agoAlso fixed memory print for background render to survive > 2 gig (unsigned)
Ton Roosendaal [Sat, 4 Mar 2006 22:35:28 +0000 (22:35 +0000)]
Also fixed memory print for background render to survive > 2 gig (unsigned)

14 years agoTo prevent confusement; used %u (unsigned int) for printing memory error.
Ton Roosendaal [Sat, 4 Mar 2006 22:22:38 +0000 (22:22 +0000)]
To prevent confusement; used %u (unsigned int) for printing memory error.

14 years ago=== Script Update: UV Export ===
Martin Poirier [Sat, 4 Mar 2006 18:19:05 +0000 (18:19 +0000)]
=== Script Update: UV Export ===

Updated the interface to use PupBlock and the FileSelector instead of drawing a full GUI
Fix a crash when no objects were selected and the Ob option was activated
Added option to edit the resulting image in an external program (this needs a full python distro for the os module. it detects the presence of the module and shows the option only if possible).
Saves the selected settings (except the save path) with Registry, so they get loaded back next time you use the script.

14 years agoDupli-Group fix: when using multiple instances of groups, with groups on
Ton Roosendaal [Sat, 4 Mar 2006 17:05:28 +0000 (17:05 +0000)]
Dupli-Group fix: when using multiple instances of groups, with groups on
different layers, the layer flags of objects got mixed up on selection.

This caused groups to become unselectable or uneditable, also the original
group...

14 years agoFixes for some gcc 4 warnings in intern/. More than 100 lines of warnings
Brecht Van Lommel [Sat, 4 Mar 2006 16:23:15 +0000 (16:23 +0000)]
Fixes for some gcc 4 warnings in intern/. More than 100 lines of warnings
for 2 unused parameters in templated c++ code, that's just ridiculous.

14 years ago===Python API===
Ken Hughes [Sat, 4 Mar 2006 00:04:45 +0000 (00:04 +0000)]
===Python API===
Taking a hint from Hos, started adding some (hopefully) better examples into
the documentation for creating and manipulating meshes.

14 years ago-> Silly mistake in loop_multiselect() in editmesh_mods.c, called EM_select_flush...
Geoffrey Bantle [Fri, 3 Mar 2006 18:00:33 +0000 (18:00 +0000)]
-> Silly mistake in loop_multiselect() in editmesh_mods.c, called EM_select_flush() instead of EM_selectmode_flush()... Oops!

14 years agofix for bug 3903
Joilnen Leite [Fri, 3 Mar 2006 17:45:23 +0000 (17:45 +0000)]
fix for bug 3903
.

14 years agoNew copy option in CTRL+C menu: copy autosmooth settings.
Ton Roosendaal [Thu, 2 Mar 2006 22:54:12 +0000 (22:54 +0000)]
New copy option in CTRL+C menu: copy autosmooth settings.

14 years agoImproved error print in case malloc returns NULL; it now adds the current
Ton Roosendaal [Thu, 2 Mar 2006 19:49:51 +0000 (19:49 +0000)]
Improved error print in case malloc returns NULL; it now adds the current
total allocated.

14 years agoAccidentally mixed up a true and false statement for detecting if halos
Ton Roosendaal [Thu, 2 Mar 2006 16:09:30 +0000 (16:09 +0000)]
Accidentally mixed up a true and false statement for detecting if halos
need panorama clipping or regular clip, causing halos to not render
without panorama...

14 years agoFixed mistake where BLI_countlist(&(lb)) should be BLI_countlist(lb)
Campbell Barton [Thu, 2 Mar 2006 01:00:13 +0000 (01:00 +0000)]
Fixed mistake where BLI_countlist(&(lb)) should be BLI_countlist(lb)

14 years agoFeature: Sofbody bake "Local"
Ton Roosendaal [Wed, 1 Mar 2006 23:45:25 +0000 (23:45 +0000)]
Feature: Sofbody bake "Local"

Sofbody simulation happens in global coordinate space, and this was also
used for baking softbodies. Too bad you cannot re-use or further animate
the baked softbody then... :)

If you now use the new "Local" button in the Bake menu, it will allow to
animate or move the baked object.

14 years agoProper syntax for freeing an allocated array in silly c++ :)
Ton Roosendaal [Wed, 1 Mar 2006 21:18:31 +0000 (21:18 +0000)]
Proper syntax for freeing an allocated array in silly c++ :)

14 years agoArray modifier patch by Ben Batt! (#3788)
Brecht Van Lommel [Wed, 1 Mar 2006 15:30:10 +0000 (15:30 +0000)]
Array modifier patch by Ben Batt! (#3788)

This modifier allows to make arrays of meshes, with multiple offset types:
- constant offset
- offset relative to object width
- offset with scale and rotation based on another object

The number of duplicates can be computed based on a fixed count, fixed length
or length of a curve. Duplicate vertices can be automatically merged.

Nice docs and example files available in the wiki:
http://mediawiki.blender.org/index.php/BlenderDev/ArrayModifier

14 years ago==SCons==
Nathan Letwory [Wed, 1 Mar 2006 09:15:50 +0000 (09:15 +0000)]
==SCons==
* WITH_BF_GAMEENGINE=0 implicitely means WITH_BF_BULLET=0 now

14 years ago-> Vertex Group/Weight support in removedoublesflag()
Geoffrey Bantle [Wed, 1 Mar 2006 03:33:45 +0000 (03:33 +0000)]
-> Vertex Group/Weight support in removedoublesflag()

Remove doubles didn't previously deal with vertex groups/weights properly. Now it averages the weights of vertices when they are doubles and share the same group. Verts that get merged but don't belong to all the same groups are dealt with as well.

14 years agoreverted the looping vs switch statement. I don't know what I was thinking
Kent Mein [Tue, 28 Feb 2006 23:58:17 +0000 (23:58 +0000)]
reverted the looping vs switch statement.  I don't know what I was thinking
in doing this in the first place.  (1 conditional vs 1 per loop duh)
Thanks for calling me on this Alexander.

(I didn't actually benchmark it to see but its pretty obvious which is less
work for the computer.)

Kent

14 years agoComplex issue in group duplicators... since they can duplicate entire
Ton Roosendaal [Tue, 28 Feb 2006 20:43:21 +0000 (20:43 +0000)]
Complex issue in group duplicators... since they can duplicate entire
animation systems, all transforms of all duplicated group members have
to be set first, before drawing or converting for render. This because
then still deformation can be calculated.

14 years agoFix for bug #3886
Kent Mein [Tue, 28 Feb 2006 18:30:16 +0000 (18:30 +0000)]
Fix for bug #3886

Basically the check for a type of jpeg was messed up.
I added a imb_is_a_jpeg function since I was working on that bit and
it makes it a little more similar to the other filetypes.

I also changed a switch statement that had the same loop for all
cases, just moved the loop outside of the switch statement.

Kent

14 years agoSaving OpenEXR half didn't free allocated half buffer... silly c++ memory
Ton Roosendaal [Tue, 28 Feb 2006 16:45:52 +0000 (16:45 +0000)]
Saving OpenEXR half didn't free allocated half buffer... silly c++ memory
management!

14 years agoUrm... Kent's commit to fix a bug broke the other nodes that use the
Ton Roosendaal [Tue, 28 Feb 2006 16:24:25 +0000 (16:24 +0000)]
Urm... Kent's commit to fix a bug broke the other nodes that use the
same composit3_pixel_processor() function. gcc even gives nice warning:

node_composite.c: In function `node_composit_exec_mix_rgb':
node_composite.c:1437: warning: passing arg 9 of `composit3_pixel_processor' from incompatible pointer type

floats were read as pointer...

14 years ago- Now the cache limitor also frees the float-planes
Peter Schlaile [Tue, 28 Feb 2006 13:07:02 +0000 (13:07 +0000)]
- Now the cache limitor also frees the float-planes

14 years agomsvc6 projects building debug
Jens Ole Wund [Tue, 28 Feb 2006 09:07:13 +0000 (09:07 +0000)]
msvc6 projects building debug