13 years agoresolved conflict state with HEAD r14096
Jean-Luc Peurière [Thu, 13 Mar 2008 23:54:02 +0000 (23:54 +0000)]
resolved conflict state with HEAD r14096
blenderbuttons still bad

not let this compile

13 years agoTwo bugfixes:
Brecht Van Lommel [Thu, 13 Mar 2008 19:40:36 +0000 (19:40 +0000)]
Two bugfixes:
- Clicking below the list of items in the shift+f4 databrowser could crash.
- Text window crashed when making it zero size.

13 years agoFix compiling error.
Martin Poirier [Thu, 13 Mar 2008 18:47:55 +0000 (18:47 +0000)]
Fix compiling error.

Typo in text.c

13 years agoFix for bug #8421: curve shape keys were resetting the curve radius to 0.0.
Brecht Van Lommel [Thu, 13 Mar 2008 18:36:33 +0000 (18:36 +0000)]
Fix for bug #8421: curve shape keys were resetting the curve radius to 0.0.

13 years agowasnt returning the images in python bake api
Campbell Barton [Thu, 13 Mar 2008 18:34:23 +0000 (18:34 +0000)]
wasnt returning the images in python bake api

13 years agoFix for bug #8548: txt_copy_sel in txt_cut_sel only copied string in a local buffer.
Ricki Myers [Thu, 13 Mar 2008 17:30:29 +0000 (17:30 +0000)]
Fix for bug #8548: txt_copy_sel in txt_cut_sel only copied string in a local buffer.
Changed txt_cut_sel to use the clipboard.

13 years agoFix for bug #8437: white borders in envmap reflection, cause was
Brecht Van Lommel [Thu, 13 Mar 2008 15:55:35 +0000 (15:55 +0000)]
Fix for bug #8437: white borders in envmap reflection, cause was
change in imagewraposa that de-premuls colors, while envmap code
was expecting premultiplied colors.

13 years agofinal (??) work on NDOF branch
Jean-Luc Peurière [Thu, 13 Mar 2008 15:40:24 +0000 (15:40 +0000)]
final (??) work on NDOF branch
it is now in a state where it can be safely
merged with trunk.

Note: basic icons were provided but I'm not
an icondesigner and working in a 16x15 grid
is way too small for me, so feel free to
change them.

13 years agoPatch #8488: UserPref to switch between pan/paste on MMB in text editor.
Ricki Myers [Thu, 13 Mar 2008 15:12:19 +0000 (15:12 +0000)]
Patch #8488: UserPref to switch between pan/paste on MMB in text editor.

13 years agoFixing compiler wanring
Daniel Genrich [Thu, 13 Mar 2008 14:38:29 +0000 (14:38 +0000)]
Fixing compiler wanring

13 years agoFix for bake texture antialiasing commit, AO with constant jitter
Brecht Van Lommel [Thu, 13 Mar 2008 14:36:17 +0000 (14:36 +0000)]
Fix for bake texture antialiasing commit, AO with constant jitter
didn't work. Also fixed a warning.

13 years agoFix for use of uninitialized value in active edge drawing.
Brecht Van Lommel [Thu, 13 Mar 2008 12:38:00 +0000 (12:38 +0000)]
Fix for use of uninitialized value in active edge drawing.

13 years agoFix for bug #8387: active uv layer index could become invalid in editmode.
Brecht Van Lommel [Thu, 13 Mar 2008 11:42:32 +0000 (11:42 +0000)]
Fix for bug #8387: active uv layer index could become invalid in editmode.

13 years agoFix for bug #8385: vector inputs of texture node in the compositor did
Brecht Van Lommel [Thu, 13 Mar 2008 11:26:18 +0000 (11:26 +0000)]
Fix for bug #8385: vector inputs of texture node in the compositor did
not work correct, it should use bNodeStack inputs like other nodes.

13 years agoFix for bug #8476: changing lamp buttons or new W-key lamp editing
Brecht Van Lommel [Thu, 13 Mar 2008 10:58:36 +0000 (10:58 +0000)]
Fix for bug #8476: changing lamp buttons or new W-key lamp editing
didn't update shaded mode, and W-key didn't update lamp preview render.

13 years agoAttempted fix for bug #8441: editing in particle mode with limit visible
Brecht Van Lommel [Thu, 13 Mar 2008 10:27:35 +0000 (10:27 +0000)]
Attempted fix for bug #8441: editing in particle mode with limit visible
enabled is really slow on some cards. Cause might be the large number of
calls to glReadPixels, now it uses the same system as sculpt to store
the depths once, code was already there for the case those depths were
available, it just wasn't storing them.

13 years agoBugfix #8543:
Joshua Leung [Thu, 13 Mar 2008 10:24:40 +0000 (10:24 +0000)]
Bugfix #8543:

New keyframes were being added 1 place too early. With just two keyframes, this resulted in keyframes being added in reverse order (which lead to problems until scrubbing timeline)

13 years agoFix for bug #8502: AO was being computed unnecessarily if it was
Brecht Van Lommel [Thu, 13 Mar 2008 09:58:21 +0000 (09:58 +0000)]
Fix for bug #8502: AO was being computed unnecessarily if it was
excluded from the combined pass and the AO pass was disabled.

13 years agoFrench text was breaking python interpreters.
Stephen Swaney [Thu, 13 Mar 2008 03:32:23 +0000 (03:32 +0000)]
French text was breaking python interpreters.
Add character encoding to file like this:
# -*- coding: latin-1 -*-

Thanks to eago for the bug report.

13 years agoTemporary bugfix [#8474]: Smaller fluid objects had no velocity assigned for vectorbl...
Daniel Genrich [Thu, 13 Mar 2008 01:24:59 +0000 (01:24 +0000)]
Temporary bugfix [#8474]: Smaller fluid objects had no velocity assigned for vectorblur usage. All zero elements now get the average velocity assigned. I tried to fix the real source - but that seems to be somewhere in the fluids code not reachable by me

13 years ago== Quicktime ==
Peter Schlaile [Wed, 12 Mar 2008 22:01:57 +0000 (22:01 +0000)]
== Quicktime ==

Hopefully fixes:
[#8518] 2.46RC1: Blender doesn't render animation correctly with Quicktime and 30/1.001

FPS was off by a factor of 10 in export...

13 years ago== Sequencer ==
Peter Schlaile [Wed, 12 Mar 2008 21:53:09 +0000 (21:53 +0000)]
== Sequencer ==

This fixes:
[#8521] Sequencer: numpad zoom is inconsistent

13 years agooddly enough this printf was the only problem compiling blender with GCC 4.3
Campbell Barton [Wed, 12 Mar 2008 21:38:51 +0000 (21:38 +0000)]
oddly enough this printf was the only problem compiling blender with GCC 4.3

13 years agoDelta Loc/Rot/Scale Ipo curve are now supporting in the BGE with the following limita...
Benoit Bolsee [Wed, 12 Mar 2008 21:33:24 +0000 (21:33 +0000)]
Delta Loc/Rot/Scale Ipo curve are now supporting in the BGE with the following limitations:

1. All Ipo channels are now independent.
In Blender 2.45, all 3 Loc Ipo channels were automatically set
together. For example, having just a LocX Ipo channel was sufficient
to fix the X, Y and Z coordinates, with the Y and Z value taken
from the object original Y and Z location in Blender. The same
was true for the 3 Rot and the 3 Scale Ipo channels: the missing
channels were assumed to have constant value taken from the object
original orientation/scale in Blender.
With this patch, all Ipo channels are now independent.
define the 3 channels of a same type together in your Blend file:
the undefined Loc, Rot, Scale coordinates of the object will
be influenced by the parent/spawner Loc/Rot/Scale in case the
object is a child or dynamically created.

2. Delta Loc, Rot, Scale are now supported with the following
- The delta Loc/Rot Ipo modify the object global (NOT local)
- The delta Scale change the object local scale
- The delta Ipo curves are relative to the object starting
Loc/Rot/Scale when the Ipo was first activated; after that, the
delta Ipo becomes global. This means that the object will return
to this initial Loc/Rot/Scale when you later restart the Ipo
curve, even if you had changed the object Loc/Rot/Scale in the
meantime. Of course this applies only to the specific Loc/Rot/Scale
coordinate that are defined in the Ipo channels as the channels
are now independent.

3. When the objects are converted from Blender to the BGE, the
delta Loc/Rot/Scale that might result from initial non-zero values
in delta Ipo Curves will be ignored. However, as soon as the
delta Ipo curve is activated, the non-zero values will be taken
into account and the object will jump to the same Loc/Rot/Scale
situation as in Blender. Note that delta Ipo curves with initial
non-zero values is bad practice; logically, a delta Ipo curver
should always start from 0.

4. If you define both a global and delta channel of the same
type (LocX and DLocX), the result will be a global channel equivalent
to the sum of the two channels (LocX+DLocX).

13 years agoAdd CMP_premulkey.c to Win32 project
Benoit Bolsee [Wed, 12 Mar 2008 21:31:17 +0000 (21:31 +0000)]
Add CMP_premulkey.c to Win32 project

13 years agoBaking now does material texture anti-aliasing if the OSA button is
Brecht Van Lommel [Wed, 12 Mar 2008 20:22:05 +0000 (20:22 +0000)]
Baking now does material texture anti-aliasing if the OSA button is
enabled, result of that is mainly visible for image textures.

13 years agoAdded two UV features (Apricot request):
Brecht Van Lommel [Wed, 12 Mar 2008 19:55:37 +0000 (19:55 +0000)]
Added two UV features (Apricot request):

- Alt+click edge loop select.
- Next to Align X/Y, Align Auto which will pick X or Y automatically,
  should give the expected result for nearly all cases.

13 years agoBugfix: recent insert keyframe optimization had an error in it
Brecht Van Lommel [Wed, 12 Mar 2008 16:53:11 +0000 (16:53 +0000)]
Bugfix: recent insert keyframe optimization had an error in it
that made replacing the last keyframe not work correct.

13 years agoAction editor keys copy/paste did not create ipo curves if they didn't
Brecht Van Lommel [Wed, 12 Mar 2008 16:04:03 +0000 (16:04 +0000)]
Action editor keys copy/paste did not create ipo curves if they didn't
exist yet, now it creates them if they are in the copy buffer.

13 years agoInsert Keyframe Optimisations:
Joshua Leung [Wed, 12 Mar 2008 11:19:07 +0000 (11:19 +0000)]
Insert Keyframe Optimisations:

Now a binary search is performed instead of a linear one to see where to insert a keyframe. It also checks first whether the keyframe is out of the bounds of the existing ones (as most of the time, keyframes are inserted at the end of the array).

When using the .BVH importer to import a particularly large file, the time taken to add the keyframes improved by about 1 second. Other factors probably limited the improvement seen.

13 years agoMoved recent addition of get/setPixelF to get/setPixelHDR and kept get/setPixelF...
Campbell Barton [Wed, 12 Mar 2008 11:13:57 +0000 (11:13 +0000)]
Moved recent addition of get/setPixelF to get/setPixelHDR and kept get/setPixelF limited to 0.0-1.0 range, to prevent existing scripts breaking.

13 years agoBugfix for wrong initial cloth settings pretending to be cotton
Daniel Genrich [Wed, 12 Mar 2008 10:41:47 +0000 (10:41 +0000)]
Bugfix for wrong initial cloth settings pretending to be cotton

13 years agoquick fix for null check that crashed blender when reading some files.
Campbell Barton [Wed, 12 Mar 2008 10:20:45 +0000 (10:20 +0000)]
quick fix for null check that crashed blender when reading some files.

13 years agoimage render to billboard was rotating UV's incorrectly, also make use of texface...
Campbell Barton [Wed, 12 Mar 2008 10:00:52 +0000 (10:00 +0000)]
image render to billboard was rotating UV's incorrectly, also make use of texface alpha rather then making many materials with textures.

13 years agoAdded python access to TEXFACE_ALPHA
Campbell Barton [Wed, 12 Mar 2008 09:04:07 +0000 (09:04 +0000)]
Added python access to TEXFACE_ALPHA

13 years agoCloth bugfix for 1. reset of cloth sim during render with vector blur when cache...
Daniel Genrich [Wed, 12 Mar 2008 01:42:39 +0000 (01:42 +0000)]
Cloth bugfix for 1. reset of cloth sim during render with vector blur when cache was not protected, 2. fix of bad vector blur for cloth, put fluidsim like function in to get real speed vectors

13 years agoAdded an Alpha Convert compositor node, to convert between
Brecht Van Lommel [Tue, 11 Mar 2008 14:40:27 +0000 (14:40 +0000)]
Added an Alpha Convert compositor node, to convert between
premultiplied and key alpha.

13 years agoBugfix: render instancing didn't work correct with layer ipo's,
Brecht Van Lommel [Tue, 11 Mar 2008 12:29:59 +0000 (12:29 +0000)]
Bugfix: render instancing didn't work correct with layer ipo's,
each instance should have it's own layer.

13 years agoBugfixes:
Joshua Leung [Tue, 11 Mar 2008 11:22:27 +0000 (11:22 +0000)]

* Menus could no longer have their items accessed by number (i.e. W-5 didn't run merge tool in EditMode when accessed by keyboard). This was caused by my commit for BUTM (there was some extra code there that isn't really needed, but was causing havok).
* NumPad can now be used for the above feature too now
* Typo in error message in Constraints PyAPI

13 years agofix for cam.setScale(), cam.setClipStart(), cam.setClipEnd() and
Campbell Barton [Tue, 11 Mar 2008 09:00:09 +0000 (09:00 +0000)]
fix for cam.setScale(), cam.setClipStart(), cam.setClipEnd() and
cam.setDrawSize(), they would raise errors when setting ints. but used not to.
better tooltips for Uv Stretch

13 years agoTiny tweak, added a space in the node title between custom name and node type.
Matt Ebb [Tue, 11 Mar 2008 05:31:50 +0000 (05:31 +0000)]
Tiny tweak, added a space in the node title between custom name and node type.

13 years ago* Small tweaks to the bevel modifier UI
Matt Ebb [Tue, 11 Mar 2008 01:17:56 +0000 (01:17 +0000)]
* Small tweaks to the bevel modifier UI

13 years agoIncreased the maximum allowed 'Max Dist' value in raytraced reflections
Matt Ebb [Tue, 11 Mar 2008 00:45:44 +0000 (00:45 +0000)]
Increased the maximum allowed 'Max Dist' value in raytraced reflections

13 years agoBGE crash when using angV & linV actuator on static objects
Benoit Bolsee [Mon, 10 Mar 2008 21:30:35 +0000 (21:30 +0000)]
BGE crash when using angV & linV actuator on static objects

The error was causing by the KINEMATIC flag not set automatically when the linear or angular velocity was set on static objects. Note that these actuators still won't work on static objects: the crash is fixed but not the actuator; linV and angV only work on dynamic objects. Fixing the linV and angV actuators on static object requires a bit more reflexion. For the time being, use dRot and dLoc on static objects.
Cleaned the code a bit: added systematic check on the physic controller presence before taking action.

13 years agostupid mistake for setting the bake mask (only masked half the faces), also exposed...
Campbell Barton [Mon, 10 Mar 2008 20:58:53 +0000 (20:58 +0000)]
stupid mistake for setting the bake mask (only masked half the faces), also exposed a possible bug since the malloc and null checks were done without mutex locking.

13 years agoFix for msvc compiler error in tiff saving.
Brecht Van Lommel [Mon, 10 Mar 2008 20:12:45 +0000 (20:12 +0000)]
Fix for msvc compiler error in tiff saving.

13 years agofix ugly code compiler warning: empty body in an if-statement
Stephen Swaney [Mon, 10 Mar 2008 19:32:20 +0000 (19:32 +0000)]
fix ugly code compiler warning:  empty body in an if-statement

13 years agoFix for tiff 16bit saving commit, had memory leak.
Brecht Van Lommel [Mon, 10 Mar 2008 17:11:18 +0000 (17:11 +0000)]
Fix for tiff 16bit saving commit, had memory leak.

13 years agoremoved a duplicate line.
Kent Mein [Mon, 10 Mar 2008 16:59:08 +0000 (16:59 +0000)]
removed a duplicate line.


13 years agoFix for the Finnish po from GSR.
Chris Want [Mon, 10 Mar 2008 16:04:34 +0000 (16:04 +0000)]
Fix for the Finnish po from GSR.

13 years agoChange to Makefile logic for processing the po directory:
Chris Want [Mon, 10 Mar 2008 16:03:58 +0000 (16:03 +0000)]
Change to Makefile logic for processing the po directory:
rather than processing it only when INTERNATIONAL is set
to true, instead only disabling processing it only if
INTERNATIONAL is set to false. The reason for this change is
because the Makefile in the top level directory doesn't
read all of the variables set in source/,
and with the current scheme the po's would only get processed
if the user had explicitely set INTERNATIONAL to true.

13 years agoAnother try to fix IRIX compile
Daniel Genrich [Mon, 10 Mar 2008 12:30:24 +0000 (12:30 +0000)]
Another try to fix IRIX compile

13 years agoApplied [#7076] Updated Python Image API to use float buffers in getPixelF/setPixelF
Campbell Barton [Mon, 10 Mar 2008 12:17:58 +0000 (12:17 +0000)]
Applied [#7076] Updated Python Image API to use float buffers in getPixelF/setPixelF
and added an image.updateDisplay() function to update imbuf->rect from imbuf->rect_float
also corrected some docstrings and epydocs

13 years agoAdd an option for saving/loading DPX with in log color space with
Brecht Van Lommel [Mon, 10 Mar 2008 11:39:37 +0000 (11:39 +0000)]
Add an option for saving/loading DPX with in log color space with
reference black, reference white and gamma.

Added 16 bit TIFF saving.

This needs more work to cleanup code and add 16 bit TIFF reading, but
committing it now so it can be tested.

13 years ago* Updated the material preview so the 'hair' preview option
Matt Ebb [Mon, 10 Mar 2008 05:22:18 +0000 (05:22 +0000)]
* Updated the material preview so the 'hair' preview option
 has UVs. Previously, it would show all noisy and messed up when
 using a UV texture.

13 years ago== Align to Transform Orientation ==
Martin Poirier [Mon, 10 Mar 2008 00:27:17 +0000 (00:27 +0000)]
== Align to Transform Orientation ==

New rotation alignement fonction

Rotates objects/Pose bones to match the selected transform orientation.

Can be used to align to view, active object (normal) and custom transform orientations.

Accessible in the Object -> Transform submenu and through the hotkey Ctrl-Alt-A (which was previously a fall through for Apply but only Ctrl-A and Ctrl-Shift-A did anything special).

Can be eventually made to work in edit mode (not too hard).

13 years agoCloth: Fixed wind force/speed calculation (was exploding with openmp before)
Daniel Genrich [Sun, 9 Mar 2008 22:55:49 +0000 (22:55 +0000)]
Cloth: Fixed wind force/speed calculation (was exploding with openmp before)

13 years agoBGE memleak fix: OpenGL Display Lists not deleted when switching scene
Benoit Bolsee [Sun, 9 Mar 2008 22:02:32 +0000 (22:02 +0000)]
BGE memleak fix: OpenGL Display Lists not deleted when switching scene

This fix also improves performance of Display List for replica objects: Display List ID caching is now enabled for replica objects which avoids a tree search on each frame and for each replica.

13 years agoBGE fix: game object to controller links consistancy maintained regardless of order...
Benoit Bolsee [Sun, 9 Mar 2008 21:51:38 +0000 (21:51 +0000)]
BGE fix: game object to controller links consistancy maintained regardless of order of deletion

AddObject actuator forces last created object to hang in memory even after object is removed from scene => bad link between object and physic controller that causes Blender to crash in case a python script tries to use it (bad programming anyway).
This patch avoids the crash by maintaining consistent links at all time.

13 years agoBGE memleak fixed: mesh/material not deleted when switching scene
Benoit Bolsee [Sun, 9 Mar 2008 21:42:03 +0000 (21:42 +0000)]
BGE memleak fixed: mesh/material not deleted when switching scene

13 years agoBGE memleak fixed: game actuator does not release file buffer
Benoit Bolsee [Sun, 9 Mar 2008 21:37:01 +0000 (21:37 +0000)]
BGE memleak fixed: game actuator does not release file buffer

13 years agoBlenderPlayer Win project was -again- damaged by the inclusion of libblenkey.lib...
Benoit Bolsee [Sun, 9 Mar 2008 21:05:05 +0000 (21:05 +0000)]
BlenderPlayer Win project was -again- damaged by the inclusion of libblenkey.lib, now removed

13 years ago== Sequencer ==
Peter Schlaile [Sun, 9 Mar 2008 20:50:43 +0000 (20:50 +0000)]
== Sequencer ==

Added grab projection also to X- and Y-key to make it work like in 3d-view.

13 years ago== Sequencer ==
Peter Schlaile [Sun, 9 Mar 2008 20:25:57 +0000 (20:25 +0000)]
== Sequencer ==

Removed sillyness on NUMPAD PERIOD that snapped CFRA to beginning of strip.

13 years agomasked/alpha baking commit was missing a null check for imbuf,
Campbell Barton [Sun, 9 Mar 2008 18:06:48 +0000 (18:06 +0000)]
masked/alpha baking commit was missing a null check for imbuf,
made textures also bake alpha

13 years agoadjusted uv stretch angle error to show more errors for low values.
Campbell Barton [Sun, 9 Mar 2008 17:32:32 +0000 (17:32 +0000)]
adjusted uv stretch angle error to show more errors for low values.

13 years agoreplaced zero comparisons with FLT_EPSILON
Campbell Barton [Sun, 9 Mar 2008 16:57:01 +0000 (16:57 +0000)]
replaced zero comparisons with FLT_EPSILON

13 years agoremoved printf and also removed some unneeded stuff, correct angles aren't needed...
Campbell Barton [Sun, 9 Mar 2008 15:07:01 +0000 (15:07 +0000)]
removed printf and also removed some unneeded stuff, correct angles aren't needed since its only comparing the 2 angles

13 years agooptimized uv stretch display angle calculation
Campbell Barton [Sun, 9 Mar 2008 14:49:12 +0000 (14:49 +0000)]
optimized uv stretch display angle calculation

13 years agofix for uninitialized variables in uv stretch drawing,
Campbell Barton [Sun, 9 Mar 2008 07:35:12 +0000 (07:35 +0000)]
fix for uninitialized variables in uv stretch drawing,
[#8428] 'Editmesh_active' theme colour not accessible via Python
bugfix problem where saving a theme would raise and error when ~/.blender didnt exist.
bugfix for file selector staying open (introduced with own undo resistant scripts)

13 years agouv stretch area display could flicker red sometimes, removed some GL settings that...
Campbell Barton [Sun, 9 Mar 2008 04:06:57 +0000 (04:06 +0000)]
uv stretch area display could flicker red sometimes, removed some GL settings that aren't needed.

13 years agoAdded UV Stretch (area/angle) display options
Campbell Barton [Sun, 9 Mar 2008 03:42:59 +0000 (03:42 +0000)]
Added UV Stretch (area/angle) display options

13 years ago* Numeric input now works better for TimeSlide
Joshua Leung [Sun, 9 Mar 2008 03:41:13 +0000 (03:41 +0000)]
* Numeric input now works better for TimeSlide
* Removed a compiler warning

13 years agoadded snap cursor->active and adjusted snap menu order in toolbox and header menu's
Campbell Barton [Sat, 8 Mar 2008 21:57:15 +0000 (21:57 +0000)]
added snap cursor->active and adjusted snap menu order in toolbox and header menu's

13 years ago* Bakeing fix for apricot, stop pixels being extended for parts of the image that...
Campbell Barton [Sat, 8 Mar 2008 21:35:38 +0000 (21:35 +0000)]
* Bakeing fix for apricot, stop pixels being extended for parts of the image that are not being baked (useful for multiple objects)
* Added support for baking alpha, as well as extending alpha margins.

13 years agoLong on the wishlist, quite simple even, and there it finally is:
Ton Roosendaal [Sat, 8 Mar 2008 19:02:08 +0000 (19:02 +0000)]
Long on the wishlist, quite simple even, and there it finally is:

  Muting option to temporary disable/enable nodes.
  Hotkey: press M on selection. It toggles.

Note: no menu entry yet, and drawing style could be tweakered...

13 years agoBugfix:
Joshua Leung [Sat, 8 Mar 2008 11:08:24 +0000 (11:08 +0000)]

Time-Slide transform tool in the Action Editor now works as well as it did before the Action-Keys transform refactor. However, numeric input is now broken as a side-effect of this.

13 years agoChanged getClipbaord and putClipboard functions to be more ghost like
Ricki Myers [Sat, 8 Mar 2008 04:22:52 +0000 (04:22 +0000)]
Changed getClipbaord and putClipboard functions to be more ghost like
Changed getClipboard to GHOST_getClipboard and putClipboard to GHOST_putClipboard

Removed ghost calls from blender and added the calls to winlay.h and ghostwinlay.c
This cleand up casts in drawtext.c

13 years ago* Clicking on constraint-buttons should now result in updates in the 3d-view without...
Joshua Leung [Sat, 8 Mar 2008 03:02:36 +0000 (03:02 +0000)]
* Clicking on constraint-buttons should now result in updates in the 3d-view without needing to move the mouse into the 3d-view first
* Added missing include

13 years agoThe BUTM button type (used for 'R' button in StretchTo/LimitDist constraints) now...
Joshua Leung [Sat, 8 Mar 2008 02:38:35 +0000 (02:38 +0000)]
The BUTM button type (used for 'R' button in StretchTo/LimitDist constraints) now acts like a button when clicked on.

13 years agoBugfix #8478: Constraints PyApi for setting targetspace non-functional
Joshua Leung [Sat, 8 Mar 2008 02:16:37 +0000 (02:16 +0000)]
Bugfix #8478: Constraints PyApi for setting targetspace non-functional

Finishing off some unfinished business (from the multi-target constraints work), it is now possible to get/set target-space for constraints where this is relevant.

For this to be possible, target-space setting(s) are now always presented as a list of ints, with each int representing the target-space setting for the relevant target.

Constraints C-API note:
get_targets function now needs to return the number of targets the constraint can have

13 years agoFix for bug [#8465] particle children for emitter particles doesn't render
Janne Karhu [Fri, 7 Mar 2008 23:08:15 +0000 (23:08 +0000)]
Fix for bug [#8465] particle children for emitter particles doesn't render
-cached step didn't react to rendering and create child particles
-now emitter particle children can use the render amount too

13 years agoFix for bug [#8402] Hair particles don't react on changing of curve guides
Janne Karhu [Fri, 7 Mar 2008 22:39:54 +0000 (22:39 +0000)]
Fix for bug [#8402] Hair particles don't react on changing of curve guides
-guide calculation was accessing wrong pointers in hair calculation
-now guides also respect the "apply effectors to children" - button, but not the "stiff" value
-disabled guide calculation for initial hair calculation as it's all done dynamically later
-few useless commented lines cleaned out

13 years agoown missing null check
Campbell Barton [Fri, 7 Mar 2008 22:39:45 +0000 (22:39 +0000)]
own missing null check

13 years agobugfix for [#8433] Retopo doesn't work with AutoMerge Editing.
Campbell Barton [Fri, 7 Mar 2008 22:01:52 +0000 (22:01 +0000)]
bugfix for [#8433] Retopo doesn't work with AutoMerge Editing.
Disable retopo while snapping, then run after. This means automerge happens first which is more useful.

13 years agoNormal map tangents are now not always averaged at vertices anymore,
Brecht Van Lommel [Fri, 7 Mar 2008 15:38:56 +0000 (15:38 +0000)]
Normal map tangents are now not always averaged at vertices anymore,
but only when the UV's are connected. That fixes some artifacts when
baking and using tangent space normal maps. It does mean increased
memory usage because it now stores 4 tangents per face like UV's,
and increased processing time, but there's no simple way around that.

13 years agosnap menu order change, as suggested by Theeth, fix for own error with Window.TestBreak()
Campbell Barton [Fri, 7 Mar 2008 09:33:18 +0000 (09:33 +0000)]
snap menu order change, as suggested by Theeth, fix for own error with Window.TestBreak()

13 years ago-> DOF from active tool
Geoffrey Bantle [Fri, 7 Mar 2008 07:23:55 +0000 (07:23 +0000)]
-> DOF from active tool

Creates (or modifies) a DOF node based upon the active object.
Requires two selected objects, the non-active one will get its
DOF coordinate system from the active selected object. This assumes
that 1 Blender unit == 10 meters

13 years agoAnother big purge of warnings. (Main culprits this time were Campbell and Geoffrey):
Joshua Leung [Fri, 7 Mar 2008 03:24:23 +0000 (03:24 +0000)]
Another big purge of warnings. (Main culprits this time were Campbell and Geoffrey):
* no newline at end of file (2-3)
* uninitialised vars (1)
* unused vars (1-2)
* assigning/comparing pointers and ints (numerous)
* etc.

13 years ago-> Light points vert normal bug and DOF fixes
Geoffrey Bantle [Fri, 7 Mar 2008 02:40:12 +0000 (02:40 +0000)]
-> Light points vert normal bug and DOF fixes

If light points are not given a unit normal they will
not show up correctly in some applications. Further DOF
nodes were not being exported correctly.

13 years agoRemove extraneous class qualifiers for gcc 4.2 / 4.3 on OSX.
Stephen Swaney [Fri, 7 Mar 2008 01:19:36 +0000 (01:19 +0000)]
Remove extraneous class qualifiers for gcc 4.2 / 4.3 on OSX.
Thanks go to jensverwiebe via IRC.

13 years agoAttempt to fix [#6757] linked objects made "local" still not editable
Campbell Barton [Thu, 6 Mar 2008 23:45:17 +0000 (23:45 +0000)]
Attempt to fix [#6757] linked objects made "local" still not editable
But not sure exactly what the user is doing.
Made game logic work on linked objects and disabled "Add Material" for linked mesh data.

13 years agoPyAPI - Window.TestBreak() - True if the user pressed escape.
Campbell Barton [Thu, 6 Mar 2008 22:45:11 +0000 (22:45 +0000)]
PyAPI - Window.TestBreak() - True if the user pressed escape.

13 years agoPython API
Ken Hughes [Thu, 6 Mar 2008 21:43:22 +0000 (21:43 +0000)]
Python API
Bugfix #8472: texture.image setter did not accept None to remove an image, or
set the image type once an image was assigned.

13 years agoMade python scripts save and load in the blend file so you can have the same scripts...
Campbell Barton [Thu, 6 Mar 2008 21:25:15 +0000 (21:25 +0000)]
Made python scripts save and load in the blend file so you can have the same scripts running when you open a blend file.
Also scripts will re-run on undo rather then closing.

This is done by saving and loading the name of the script or textblock of the 'Script' datablock, connected to the ScriptSpace. This way when there is a name but the script dosnt run.
Blender runs the script or text block if available.

13 years ago* on win32 with msvc USE_OPENAL was defined for the entire source. Made it so that...
Nathan Letwory [Thu, 6 Mar 2008 21:01:55 +0000 (21:01 +0000)]
* on win32 with msvc USE_OPENAL was defined for the entire source. Made it so that it is defined only there where needed when needed.
* dxguid is necessary only when building WITH_BF_OPENAL=1. I already added the mingw version to our SVN in lib/windows/openal/lib and now I made sure it is linked against only when needed.

13 years agoFSA fix:
Ton Roosendaal [Thu, 6 Mar 2008 19:26:44 +0000 (19:26 +0000)]
FSA fix:

If you composite using multiple scenes, the "use FSA" button had to be set
or disabled for each scene. Now you can just set/disable FSA for the scene
that does the compositing. You can only disable FSA in other scenes if it
was set before though.

(Any understands these lines? :)

13 years agoBugfix #8477: Reset button for StretchTo/Limit-Distance Constraints Broken
Joshua Leung [Thu, 6 Mar 2008 10:02:25 +0000 (10:02 +0000)]
Bugfix #8477: Reset button for StretchTo/Limit-Distance Constraints Broken

Unfortunately, using BUT instead of BUTM won't work for these buttons. Although they now work, there is less tactical feedback (i.e. button depresses when clicked), and their colouring doesn't suggest to the user that they do something (i.e. grey not 'orange').

13 years agoChange the current line number to the cursor color when line numbers is toggled
Ricki Myers [Thu, 6 Mar 2008 01:54:04 +0000 (01:54 +0000)]
Change the current line number to the cursor color when line numbers is toggled

13 years agoCloth bugfix for jumpy cloth (users were complaining), so the mass can be changed...
Daniel Genrich [Thu, 6 Mar 2008 01:21:40 +0000 (01:21 +0000)]
Cloth bugfix for jumpy cloth (users were complaining), so the mass can be changed on GUI now (reference: in old blendfiles, mass=1.0 was used)