13 years ago== MSVC 7.1 projectfiles ==
Andrea Weikert [Mon, 18 Feb 2008 17:56:41 +0000 (17:56 +0000)]
== MSVC 7.1 projectfiles ==
- added missing files rev. 13738 (Transform Orientations) commit.

13 years agomoved LARGEFILE defines to BLI_storage.h
Campbell Barton [Mon, 18 Feb 2008 17:20:04 +0000 (17:20 +0000)]
moved LARGEFILE defines to BLI_storage.h

13 years agoDisable particle time looping for hair, doesn't have any purpose there,
Brecht Van Lommel [Mon, 18 Feb 2008 15:56:34 +0000 (15:56 +0000)]
Disable particle time looping for hair, doesn't have any purpose there,
only gives weird results.

13 years agoBugfix for defocus node gamma correct. It applied gamma correct to
Brecht Van Lommel [Mon, 18 Feb 2008 15:21:59 +0000 (15:21 +0000)]
Bugfix for defocus node gamma correct. It applied gamma correct to
a premul image but that doesn't work correct. Now it depremuls and
premuls again around the gamma correction. Better solution might be
possible, but this gives compatible results.

13 years agoparticle bug - Edit Particles could reference invalid face indices's,
Campbell Barton [Mon, 18 Feb 2008 14:06:45 +0000 (14:06 +0000)]
particle bug - Edit Particles could reference invalid face indices's,
Now particles lookup every face in the derived mesh to be placed on the mesh.

13 years agoBugfix for speed vector pass not being done when rendering a single
Brecht Van Lommel [Mon, 18 Feb 2008 13:38:16 +0000 (13:38 +0000)]
Bugfix for speed vector pass not being done when rendering a single
layer from the compositor. I've solved this by changing the behavior,
now it always renders a vector pass even if Do Composite is disabled.
I think that's more consistent because other passes get rendered too
regardless of Do Composite, the vector pass was just an exception.

13 years agoBugfix for own mistake in recent commit, halo render could crash
Brecht Van Lommel [Mon, 18 Feb 2008 13:05:27 +0000 (13:05 +0000)]
Bugfix for own mistake in recent commit, halo render could crash
with no material assigned.

13 years agoBugfix for particle path drawing messing up opengl state in some cases.
Brecht Van Lommel [Mon, 18 Feb 2008 11:29:08 +0000 (11:29 +0000)]
Bugfix for particle path drawing messing up opengl state in some cases.

13 years agoFix for bug #7845:
Brecht Van Lommel [Mon, 18 Feb 2008 11:16:20 +0000 (11:16 +0000)]
Fix for bug #7845:

IK stretch lead to bone shaking a bit too quickly since making IK
scale independent, now does more strict clamping of stretch again.

13 years agoBugfix: hair effector settings only showed when the hair was editable,
Brecht Van Lommel [Mon, 18 Feb 2008 10:58:03 +0000 (10:58 +0000)]
Bugfix: hair effector settings only showed when the hair was editable,
but they work also if the hair is not editable.

13 years agoFix for bug #8052: particle emit from verts and volume didn't support
Brecht Van Lommel [Mon, 18 Feb 2008 10:49:46 +0000 (10:49 +0000)]
Fix for bug #8052: particle emit from verts and volume didn't support
subsurf/derivedmesh mapping yet.

Also added int-to-pointer and back conversion function to solve warnings.
Note that it is only allowed to store an int in a pointer and then get
it back, but not a pointer in an int!

13 years agotexture forcefields had a bug where uninitialized values could be used.
Campbell Barton [Sun, 17 Feb 2008 23:53:48 +0000 (23:53 +0000)]
texture forcefields had a bug where uninitialized values could be used.
do_texture_effector assumed multitex_ext would assign r/g/b colors which isnt true for grey textures.
Fallback to PFIELD_TEX_GRAD with grey textures, node this in tooltip also.

13 years ago== Sequencer / FFMPEG ==
Peter Schlaile [Sun, 17 Feb 2008 23:39:16 +0000 (23:39 +0000)]
== Sequencer / FFMPEG ==

This fixes [#8297] Video Playback crash (audio buffer)
If a single audio frame is larger than 1 second (but still smaller than
AVCODEC_MAX_AUDIO_FRAME_SIZE) things could get very - annoying :)

13 years agoFix for bug #8044: vertex colors weren't supported for hair.
Brecht Van Lommel [Sun, 17 Feb 2008 22:42:03 +0000 (22:42 +0000)]
Fix for bug #8044: vertex colors weren't supported for hair.

13 years ago== Transform Orientations ==
Martin Poirier [Sun, 17 Feb 2008 22:19:02 +0000 (22:19 +0000)]
== Transform Orientations ==

Merge Normal orientation calculations with Custom Orientations, to make it work the same all accross the table:
- One or more faces: use average face normal (first edge of faces define tangent)
- One edge: use edge itself as normal (vertex normals define tangent)
- One vertex: use vertex normal (tangent is perpendicular to normal and z-axis)
- Two vertices => edge orientation
- Two vertices => face orientation

*I tested quite a bit but please report any bugs this might have caused.*

ADDED FILE WARNING: source/blender/src/transform_orientations.c

13 years agoBugfix: yafray number of processors was not properly initialized, and
Brecht Van Lommel [Sun, 17 Feb 2008 22:11:05 +0000 (22:11 +0000)]
Bugfix: yafray number of processors was not properly initialized, and
could be 0, hanging yafray. This commits removes the separate yafray
number of processor setting and simply using the blender threads
button, there is no reason for a separate setting.

13 years ago== ImageBrowser ==
Andrea Weikert [Sun, 17 Feb 2008 21:34:56 +0000 (21:34 +0000)]
== ImageBrowser ==
added icon for 'Toggle Bookmark Area'
disabled the bookmarks for databrowse
allow to add path inside .blend file (could be nice to use as material library for example)

13 years agobugfix [#8263] Video Sequence Editor > Sequence > Reassign Inputs > crash
Campbell Barton [Sun, 17 Feb 2008 21:22:42 +0000 (21:22 +0000)]
bugfix [#8263] Video Sequence Editor > Sequence > Reassign Inputs > crash
just missing null checks

13 years agoBugfix [#8196] sequencer crash when adding scene without camera
Campbell Barton [Sun, 17 Feb 2008 20:44:07 +0000 (20:44 +0000)]
Bugfix [#8196] sequencer crash when adding scene without camera
added checks for a camera
Also added an error ob bake if there are no active objects.

13 years agoFix for bug #8267: vector blur results in horizontal lines.
Brecht Van Lommel [Sun, 17 Feb 2008 20:36:13 +0000 (20:36 +0000)]
Fix for bug #8267: vector blur results in horizontal lines.

Vector blur was averaging z-values between pixels, which could give
wrong z-test results. While averaging is needed for speed vectors
to avoid holes, for z-values it is not required and not doing it
seems to avoid artifacts in specific cases.

13 years agodouble strike
Jens Ole Wund [Sun, 17 Feb 2008 20:13:58 +0000 (20:13 +0000)]
double strike
-help MSVC compilers with finite /* hope that won't break cygwin builds */
-a unfinished soft body feature sneaked in (freezer)  .. disabled for now

13 years agomeshes with nan verts could crash blender when building as mesh octree
Campbell Barton [Sun, 17 Feb 2008 18:50:45 +0000 (18:50 +0000)]
meshes with nan verts could crash blender when building as mesh octree

13 years ago"From particles" children are again allowed for non-hair/keyed particles, although...
Janne Karhu [Sun, 17 Feb 2008 18:33:20 +0000 (18:33 +0000)]
"From particles" children are again allowed for non-hair/keyed particles, although with some limitations like no separate render amount or rough/branching values.

13 years agoPatch from Giuseppe Ghibò, modified not to use scons defines.
Campbell Barton [Sun, 17 Feb 2008 18:09:53 +0000 (18:09 +0000)]
Patch from Giuseppe Ghibò, modified not to use scons defines.
Files above 4gig did not display on linux in the file selector.
Need to make sure this is ok in other os's too.

13 years agoOld particles didn't interpolate between keypoints at render time so regression test...
Janne Karhu [Sun, 17 Feb 2008 15:46:03 +0000 (15:46 +0000)]
Old particles didn't interpolate between keypoints at render time so regression test hairball.blend didn't render properly. Now all converted particle systems have path display and render steps set to 0 so that only the keypoints are used.

13 years agoParticle looping works again at least to some extent (don't have time to test thoroug...
Janne Karhu [Sun, 17 Feb 2008 14:44:12 +0000 (14:44 +0000)]
Particle looping works again at least to some extent (don't have time to test thoroughly). Instant looping had to be removed as it caused more trouble than good things.

13 years agoRemoved "roll" and "rotation" child particle kink modes as they couldn't be made...
Janne Karhu [Sun, 17 Feb 2008 13:41:42 +0000 (13:41 +0000)]
Removed "roll" and "rotation" child particle kink modes as they couldn't be made to work properly. Will have to see later if these can be put back in so that they actually work.

13 years agoFix for bug: [#8287] crash duplicating softbody hair
Janne Karhu [Sun, 17 Feb 2008 12:46:09 +0000 (12:46 +0000)]
Fix for bug: [#8287] crash duplicating softbody hair
-Duplicating a particle system with softbody didn't update the sb->particle pointer correctly.

13 years agoBugfix: Limit Constraints
Joshua Leung [Sun, 17 Feb 2008 06:17:01 +0000 (06:17 +0000)]
Bugfix: Limit Constraints

Rot/Scale-Limit Constraints with 'For Transform' option would sometimes act on location values too.

13 years ago== Action Editor Drawing - Optimisation Attempt ==
Joshua Leung [Sun, 17 Feb 2008 06:00:18 +0000 (06:00 +0000)]
== Action Editor Drawing - Optimisation Attempt ==

Another attempt at further optimising Action Editor drawing without doing any drastic changes.

13 years agoFix for bug #8219: proportional edit circle was drawing
Brecht Van Lommel [Sat, 16 Feb 2008 19:37:33 +0000 (19:37 +0000)]
Fix for bug #8219: proportional edit circle was drawing
wrong in the uv editor since editmode integration.

13 years agosculptmode mtex texture pointers are now duplicated too, should resolve scene copy...
Campbell Barton [Sat, 16 Feb 2008 19:13:40 +0000 (19:13 +0000)]
sculptmode mtex texture pointers are now duplicated too, should resolve scene copy errors.

13 years agoFix for bug #8285 and #8286: halo crashes with environment maps and
Brecht Van Lommel [Sat, 16 Feb 2008 18:49:54 +0000 (18:49 +0000)]
Fix for bug #8285 and #8286: halo crashes with environment maps and
render instancing.
Fix for vector blur alpha blending bug due to my recent bugfix, as
reported on bf-committers.

13 years agoFixed pointer type warning.
Nicholas Bishop [Sat, 16 Feb 2008 18:00:22 +0000 (18:00 +0000)]
Fixed pointer type warning.

13 years ago== Sculpt ==
Nicholas Bishop [Sat, 16 Feb 2008 16:59:26 +0000 (16:59 +0000)]
== Sculpt ==

Fixed a double free occuring when duplicating a scene while in sculpt mode.

13 years agoImages in the image editor were being draw with the wrong glBlendFunc() command
Joseph Eagar [Sat, 16 Feb 2008 16:44:41 +0000 (16:44 +0000)]
Images in the image editor were being draw with the wrong glBlendFunc() command
in draw-alpha mode. This would cause key alpha images to draw badly.

13 years agofix for [#8257] double-freeing pointers from sculpt code
Campbell Barton [Sat, 16 Feb 2008 16:35:47 +0000 (16:35 +0000)]
fix for [#8257] double-freeing pointers from sculpt code

Cleaned up scene_copy, and moved some scene copying into this function that was inline in the user interface.

Also moved malloc error prints onto separate lines so you can set breakpoints.

13 years agoPoseLib - swapping keys:
Joshua Leung [Sat, 16 Feb 2008 04:12:54 +0000 (04:12 +0000)]
PoseLib - swapping keys:

Swapped the order of a few keys during PoseLib Preview, so that they made more sense.

13 years agocleaning up softbody.c code
Jens Ole Wund [Sat, 16 Feb 2008 00:07:05 +0000 (00:07 +0000)]
cleaning up softbody.c code
- removed some 'hopes' on ODE solving
- no linking to open numeric library (ONL) should be required for now

13 years agopatch 8235 8218 8211 added: various gameengine improvements, fixed windows project...
Benoit Bolsee [Fri, 15 Feb 2008 23:12:03 +0000 (23:12 +0000)]
patch 8235 8218 8211 added: various gameengine improvements, fixed windows project files

13 years agoautomerge and multires cant coexist, added note in the menu to say this and stopped...
Campbell Barton [Fri, 15 Feb 2008 22:13:44 +0000 (22:13 +0000)]
automerge and multires cant coexist, added note in the menu to say this and stopped automerge from running and popping up an annoying error when multires is enabled.

13 years agoFix for planar preview, to make Z=0 everywhere
Ton Roosendaal [Fri, 15 Feb 2008 18:50:13 +0000 (18:50 +0000)]
Fix for planar preview, to make Z=0 everywhere

13 years agoNew preview blend c file, fixed Planar view texture coordinates (so Z=0)
Ton Roosendaal [Fri, 15 Feb 2008 18:49:46 +0000 (18:49 +0000)]
New preview blend c file, fixed Planar view texture coordinates (so Z=0)

13 years agoBugfix: alpha blending bug in vector blur, gave too dark areas using
Brecht Van Lommel [Fri, 15 Feb 2008 18:21:30 +0000 (18:21 +0000)]
Bugfix: alpha blending bug in vector blur, gave too dark areas using
input image with alpha.

13 years agoSet linking priority of libbinreloc to 226 for blenderplayer. Why?
Chris Want [Fri, 15 Feb 2008 16:52:20 +0000 (16:52 +0000)]
Set linking priority of libbinreloc to 226 for blenderplayer. Why?
Because libblenkernel_blc, which depends on binreloc, has priority

13 years agoPython api addition PupTreeMenu() - for apricot
Campbell Barton [Fri, 15 Feb 2008 16:08:41 +0000 (16:08 +0000)]
Python api addition PupTreeMenu() - for apricot

13 years agoBugfix for unnecessary missing object warnings for speed vectors,
Brecht Van Lommel [Fri, 15 Feb 2008 15:29:43 +0000 (15:29 +0000)]
Bugfix for unnecessary missing object warnings for speed vectors,
caused by optimization that doesn't compute vectors for objects that
don't need them.

13 years agoSimple but useful compositor feature:
Ton Roosendaal [Fri, 15 Feb 2008 15:20:50 +0000 (15:20 +0000)]
Simple but useful compositor feature:

CTRL+click on node will not only select it, but also connect the active
viewer to the top output of the node.
To evaluate: make viewing option to have this as a default on select.
Could work nice for collapsed nodes.

13 years agoBugfix: the re-render layer button in the render layer composite node
Brecht Van Lommel [Fri, 15 Feb 2008 14:56:56 +0000 (14:56 +0000)]
Bugfix: the re-render layer button in the render layer composite node
didn't change the current frame of the scene to the frame of the
compositing scene.

13 years agoBugfix:
Ton Roosendaal [Fri, 15 Feb 2008 13:49:10 +0000 (13:49 +0000)]

In compositor, not always all scenes rendered... this was why:
When disabling 'save buffers', but keeping the 'full sample' option, the
*other* scenes in a composite didn't render.

13 years agoEffectors on particle hair can now be applied to the children instead
Brecht Van Lommel [Fri, 15 Feb 2008 12:54:43 +0000 (12:54 +0000)]
Effectors on particle hair can now be applied to the children instead
of the parents, with the "Children" button next to Stiffness.

13 years ago== Linux ==
Willian Padovani Germano [Fri, 15 Feb 2008 12:41:27 +0000 (12:41 +0000)]
== Linux ==

Removing the stub I added for a binreloc function. Here for some reason it's needed (somehow binreloc is not being included ?) or the player won't link, but for others (at least on 64 bit systems) the opposite happens.

Thanks Chris Want for the feedback to the commit where I tested this.

13 years agoFix for theoretical memory leak. Oddly this leak didn't seem
Joseph Eagar [Fri, 15 Feb 2008 09:42:25 +0000 (09:42 +0000)]
Fix for theoretical memory leak.  Oddly this leak didn't seem
to be happening, but might as well fix it anyway.

13 years ago== Action Editor - Keyframe Selection (Added tools) ==
Joshua Leung [Fri, 15 Feb 2008 06:06:08 +0000 (06:06 +0000)]
== Action Editor - Keyframe Selection (Added tools) ==

* Ctrl-I now swaps the selection status of keyframes/channels depending on where the mouse cursor is located. Ctrl-Shift-I does so for markers.

* (De)selecting channels now clears the 'active' flags too, so there will be no more 'selected' items lingering around even after pressing AKEY

13 years agoBugfix: Action Editor Insert-Key
Joshua Leung [Fri, 15 Feb 2008 05:20:28 +0000 (05:20 +0000)]
Bugfix: Action Editor Insert-Key

When inserting a keyframe using the IKEY in the Action Editor, Blender could crash if inserting a keyframe in a Constraint Channel.

13 years agoBugfixes (Constraints UI):
Joshua Leung [Fri, 15 Feb 2008 04:58:55 +0000 (04:58 +0000)]
Bugfixes (Constraints UI):

* Transform Constraint UI drew 'VG:' field incorrectly, resulting in bad layout
* StretchTo constraint's UI has been tidied up a bit
* (TODO: MinMax's UI needs URGENT attention)

13 years agoBugfix #8255: Negative Rotation Values with Transform Constraint go Crazy
Joshua Leung [Fri, 15 Feb 2008 04:42:48 +0000 (04:42 +0000)]
Bugfix #8255: Negative Rotation Values with Transform Constraint go Crazy

This bug-report brought to light some problems with the transform constraint's handling of degrees+radians. Now, the input-range scaling is done in degrees (as the clamping factors ranges are in degrees) instead of having that done after this stage. The problems should now be fixed (and gears now seem to work ok), but I hope no other rigs have been broken.

13 years agoBugfix: depsgraph cycle checking for armatures sometimes gave incorrect
Brecht Van Lommel [Thu, 14 Feb 2008 21:34:27 +0000 (21:34 +0000)]
Bugfix: depsgraph cycle checking for armatures sometimes gave incorrect
cycle warnings.

13 years agoBugfix for depsgraph error leading to lagging, caused by local
Brecht Van Lommel [Thu, 14 Feb 2008 19:08:24 +0000 (19:08 +0000)]
Bugfix for depsgraph error leading to lagging, caused by local
constraint ipo drivers and proxies.

13 years ago1) Revert previous commit, rendering negative won't work that simple...
Ton Roosendaal [Thu, 14 Feb 2008 18:56:14 +0000 (18:56 +0000)]
1) Revert previous commit, rendering negative won't work that simple...
   Needs much more attention.
2) Fix for zcombine node:
   - it skipped execution when no image rgba out was used
   - didnt work for FSA yet

13 years agoAllows negative light to result in negative diffuse and 'combined'
Ton Roosendaal [Thu, 14 Feb 2008 18:00:58 +0000 (18:00 +0000)]
Allows negative light to result in negative diffuse and 'combined'
when you have world exposure set. (it used to clip it in 0-1, now it
mirrors the values)

13 years agostupid me! if you move var declarations sometimes you have to add
Joseph Eagar [Thu, 14 Feb 2008 15:14:01 +0000 (15:14 +0000)]
stupid me! if you move var declarations sometimes you have to add
assignments outside of the var declarations!

13 years agoin my tiredness I didn't declare some vars at the top of the block.
Joseph Eagar [Thu, 14 Feb 2008 14:57:41 +0000 (14:57 +0000)]
in my tiredness I didn't declare some vars at the top of the block.

13 years agoAdded another 2 checks for if an image has the premul flag set, 1 in the image
Joseph Eagar [Thu, 14 Feb 2008 13:36:59 +0000 (13:36 +0000)]
Added another 2 checks for if an image has the premul flag set, 1 in the image
compositor node, another in render_realtime_texture.  Note that multilayer images
in the image compositor node do not respect the premul flag (though I did write
commented out code for it).

As far as I can tell, the premul option never worked for multilayer images in the
image node, so I'm a little nervous about making it work properly there.

ton, any comments?

13 years agoReverted the change of auto-turning on premul for images from last
Joseph Eagar [Thu, 14 Feb 2008 12:44:27 +0000 (12:44 +0000)]
Reverted the change of auto-turning on premul for images from last
commit.  I still think this is a good idea, but needs more discussion.

Basically, the way the premul option worked before is it actually
changed the image data to be premul (for each pixel it multipled r,g,b by a) when
loading an image.  So if a user wanted his image to be key, yet
still work in the renderer (which expects premul) he'd be stuck.
Also, it was kindof confusing how if you painted something in the image,
then saved it with premul on, when next you loaded the image it'd have
changed (especially since the image editor painting seems to paint in
key, not premul).

13 years agoObject drawing was setting switching glDepthMask(GL_FALSE); even when no particles...
Campbell Barton [Thu, 14 Feb 2008 12:34:54 +0000 (12:34 +0000)]
Object drawing was setting switching glDepthMask(GL_FALSE); even when no particles were drawn.
Added an annoying message when people press the F key to say FaceSel mode was removed.

13 years agoThe "premul" option for images had a very bad implementation. It
Joseph Eagar [Thu, 14 Feb 2008 12:19:37 +0000 (12:19 +0000)]
The "premul" option for images had a very bad implementation.  It
basically flagged the image so that on next load/reload, the image
data would be converted to premul.  This was very confusing to the
user, as it meant premul wouldn't take effect will the image was
reloaded, and it would also change the image data, which the user
might've been painting.

To fix this, I've removed this behaviour and instead made the premul
option apply at render time.  During render while evaluating an image
texture, if the image has the premul flag set then the premul operation
is done on the texture result data, thus not touching the image data
at all.

Also, I've made premul be turned on by default.

13 years agoBugfix #8283: PyConstraints menu problems
Joshua Leung [Thu, 14 Feb 2008 10:42:53 +0000 (10:42 +0000)]
Bugfix #8283: PyConstraints menu problems

The menu listing the scripts available for use was not working correctly for newly created PyConstraints. This was caused by a missing initialisation for the 'active' index.

13 years agomake the file and image selector convert relative paths.
Campbell Barton [Thu, 14 Feb 2008 10:18:18 +0000 (10:18 +0000)]
make the file and image selector convert relative paths.

13 years ago== Shift-G - Select Grouped menu in PoseMode ==
Joshua Leung [Thu, 14 Feb 2008 06:31:40 +0000 (06:31 +0000)]
== Shift-G - Select Grouped menu in PoseMode ==

In PoseMode, the Shift-G menu now presents options for selecting bones in the same layer or the same bone-group.

13 years ago== Custom Bone Colours - Per Group Colour-Sets ==
Joshua Leung [Thu, 14 Feb 2008 05:00:23 +0000 (05:00 +0000)]
== Custom Bone Colours - Per Group Colour-Sets ==

Now it is possible to define a custom colour set per bone group. This allows rigs to look consistent across different computers with different themes. As such, the bone-groups buttons have been reshuffled to present the settings in a better way.

Colour sets are now selected from a menu with descriptive names, instead of using a slider. Choose the 'Custom Set' entry to use a custom set of colours for the active group. The sets of theme colours have been retained, and can be used directly, or as the basis for a new custom colour set (when any one of the colour controls is touched).

For bone-groups that haven't had any custom colour set used yet, a default 'test' set is used. This uses bright versions of the RGB colours.

13 years agoParticles' angular velocity mode "velocity" was actually just a duplicate of "spin...
Janne Karhu [Wed, 13 Feb 2008 21:06:37 +0000 (21:06 +0000)]
Particles' angular velocity mode "velocity" was actually just a duplicate of "spin" without any angular velocity, so it was removed.

13 years ago== BPython API ==
Willian Padovani Germano [Wed, 13 Feb 2008 20:42:36 +0000 (20:42 +0000)]
== BPython API ==

Fixing mistake in Blender_ShowHelp() function: argument to Blender_Run() should be passed directly as a string, not encapsulated in a tuple (aka "s", not "(s)").

13 years agoIt seems my fix for bug 8274 broke hair, so reverting that and opening the bug again...
Janne Karhu [Wed, 13 Feb 2008 18:57:28 +0000 (18:57 +0000)]
It seems my fix for bug 8274 broke hair, so reverting that and opening the bug again in the tracker :)

13 years agoFix for bug: [#8274] Particle System cannot be persuaded to recalculate
Janne Karhu [Wed, 13 Feb 2008 15:33:37 +0000 (15:33 +0000)]
Fix for bug: [#8274] Particle System cannot be persuaded to recalculate
-The exact time for a particle being unborn or alive needed some adjusting

13 years agoFix for bug #8206: crash with 0 particle hairs and softbody for the
Brecht Van Lommel [Wed, 13 Feb 2008 14:40:43 +0000 (14:40 +0000)]
Fix for bug #8206: crash with 0 particle hairs and softbody for the
particle system.

13 years ago- Fix for bug #8264: SSS turned off by "default" render settings button,
Brecht Van Lommel [Wed, 13 Feb 2008 14:29:06 +0000 (14:29 +0000)]
- Fix for bug #8264: SSS turned off by "default" render settings button,
  I also added a button to control enabling/disabling SSS for render.
- Fix for potential halo sorting crash.
- Add a newline at the end of a file to remove gcc warning.

13 years agoAdded a global string to be used for the tempdir. since the user preference is not...
Campbell Barton [Wed, 13 Feb 2008 13:55:22 +0000 (13:55 +0000)]
Added a global string to be used for the tempdir. since the user preference is not loaded in background mode and the user preference is not validated and has no fallback.
'btempdir' is set with BLI_where_is_temp() - This tries to use U.tempdir but falls back to $TEMP or /tmp/

13 years ago* fix for [#8085] Glare node crashes on inputs with < 4 colour channels
Matt Ebb [Wed, 13 Feb 2008 13:36:35 +0000 (13:36 +0000)]
* fix for [#8085] Glare node crashes on inputs with < 4 colour channels

I had this assigned to Alfredo for a while, but he hasn't replied to the tracker at all, so I suspect he's not around. I'll commit this now to prevent crashes.

Some of the code in the glare node assumed that all buffers will be 4 channel RGBA, when in fact it was possible to give it a VEC3, such as a spec pass with no alpha, which would crash it. This fix just duplicates the input to a new temporary RGBA buffer to work on, if it's not already RGBA.

13 years ago* "Drag Immediately" transform user preference.
Matt Ebb [Wed, 13 Feb 2008 13:26:46 +0000 (13:26 +0000)]
* "Drag Immediately" transform user preference.

It's already supported within transform, was previously known as 'tweak mode' and for some odd reason was a compile time option. This brings it to a user preference (in 'Edit Methods' section).

Basically it means that you don't need the extra click at the end to confirm a drag-move transform, if you're already dragged, you can just let go of the mouse rather than needing to click again. It's a lot more comfortable when you're used to using other applications as well as blender, and much more sensible for tablets.

This started life as patch #7144 by Ed Britton, but this implementation has been changed considerably.

13 years agoFix for bug #7863: AO made normal map baking unnecessarily slow.
Brecht Van Lommel [Wed, 13 Feb 2008 13:25:19 +0000 (13:25 +0000)]
Fix for bug #7863: AO made normal map baking unnecessarily slow.
Fix for bug #8226: approximate AO doesn't bake.

13 years agoRender Simplification
Brecht Van Lommel [Wed, 13 Feb 2008 11:18:08 +0000 (11:18 +0000)]
Render Simplification

This adds a few settings to control global render quality, for faster
renders when tweaking lighting etc. The implementation is not so great,
and this should really be part of a proper render profile and preset
system. So for now it's a hidden Peach feature, enabled by setting rt
to 1. Before the next release, I'll either remove or improve it.

Settings are:

- Maximum subsurf level
- Child particles percentage
- Maximum shadow map samples
- AO and SSS quality factor

13 years agoCloth: changes in editmode will influence the velocity by 10% now, changed/add some...
Daniel Genrich [Wed, 13 Feb 2008 10:44:36 +0000 (10:44 +0000)]
Cloth: changes in editmode will influence the velocity by 10% now, changed/add some update calls for the implicit function

13 years agoBugfix: approximate AO with pixel cache & osa now should have fewer
Brecht Van Lommel [Wed, 13 Feb 2008 10:44:12 +0000 (10:44 +0000)]
Bugfix: approximate AO with pixel cache & osa now should have fewer
black pixels.

13 years ago== Action Editor - Insert Key+ "Active Group" ==
Joshua Leung [Wed, 13 Feb 2008 06:43:31 +0000 (06:43 +0000)]
== Action Editor - Insert Key+ "Active Group" ==

"Insert Key" menu in Action Editor (IKEY) now has a new option: "In Active Group". This only inserts keyframes in the active action group (if available).

13 years agoPython API
Ken Hughes [Tue, 12 Feb 2008 19:29:12 +0000 (19:29 +0000)]
Python API
Added missing lamp.falloffType attribute.  Also fixed typo in Render docs.

13 years ago* fix provided by Stefan Birgmeier (qwequ777): int pos may lead to crashes on 64...
Nathan Letwory [Tue, 12 Feb 2008 18:56:32 +0000 (18:56 +0000)]
* fix provided by Stefan Birgmeier (qwequ777): int pos may lead to crashes on 64-bit systems. PyDict_Next takes a Py_ssize_t, not an int (tsk tsk).

13 years agoBugfix for use of unitinialized values when drawing hair dupli particles.
Brecht Van Lommel [Tue, 12 Feb 2008 17:24:15 +0000 (17:24 +0000)]
Bugfix for use of unitinialized values when drawing hair dupli particles.

13 years agoPointcache for unsaved files is saved in /tmp/blendcache_untitled/... instead of...
Campbell Barton [Tue, 12 Feb 2008 17:11:45 +0000 (17:11 +0000)]
Pointcache for unsaved files is saved in /tmp/blendcache_untitled/... instead of not generating pointcache at all, be careful since the temp path can be NULL or missing.

This is messy because the files can be left there when blender quits, however saveBuffers and sessions alredy do :/ Some cleanup function needs to Blender that deals with this!

13 years agoFix for bug: [#8271] Changes to the texture settings for particle attributes are...
Janne Karhu [Tue, 12 Feb 2008 16:36:03 +0000 (16:36 +0000)]
Fix for bug: [#8271] Changes to the texture settings for particle attributes are not updated
- Material buttons code didn't set particles update flag
- Small change to how particle emit time is interpreted from textures, now the "time" texture output can actually be used for something

13 years agoBugfix: when defocus node had nothing to do and just passed on the buffer,
Brecht Van Lommel [Tue, 12 Feb 2008 15:34:26 +0000 (15:34 +0000)]
Bugfix: when defocus node had nothing to do and just passed on the buffer,
it didn't correctly deal with pointers, gave a crash in some circumstances.

13 years agoFix for bug: [#8269] Particle / Vizualization / Draw / Disp reduces rendered particles
Janne Karhu [Tue, 12 Feb 2008 15:26:20 +0000 (15:26 +0000)]
Fix for bug: [#8269] Particle / Vizualization / Draw / Disp reduces rendered particles
- Hair didn't update the visibility flag of each particle
- Changing the disp value gave a too strong update call to particles
- Changed disp value behavior for dynamic particles a bit, now all particles are always calculated for uncached frames so that every particle gets it's data cached. Now the disp value actually does what it's supposed to do, it alters the amount of particles DISPlayed in viewport, but doesn't change the simulations. (With old particles it was possible to only calculate the disp amount of particles too as everything was always recalculated from scratch anyways, but now that particles are more complicated and cached etc. it's not an option anymore.)

13 years agoAdded python access for baking
Campbell Barton [Tue, 12 Feb 2008 14:47:55 +0000 (14:47 +0000)]
Added python access for baking

13 years agoFix for bug: [#8247] Hairs that are added in particle mode act and render unpredictab...
Janne Karhu [Tue, 12 Feb 2008 13:38:07 +0000 (13:38 +0000)]
Fix for bug: [#8247] Hairs that are added in particle mode act and render unpredictably when soft body is activated
-softbody BodyPoint indexes were created with a lag of one leading to use of wrong softbody points for particles when creating path cache
-interpolation points for softbody hair weren't chosen optimally when not yet at the end of a hair

13 years agoCloth: Fix order in collision loop -> solving selfcollision could result in new cloth...
Daniel Genrich [Tue, 12 Feb 2008 12:02:39 +0000 (12:02 +0000)]
Cloth: Fix order in collision loop -> solving selfcollision could result in new cloth-object collisions, adjust 'collision quality' for the number of loops taken

13 years agoGUI fixes: some minor gui tweaks for collision modifier
Daniel Genrich [Tue, 12 Feb 2008 11:31:22 +0000 (11:31 +0000)]
GUI fixes: some minor gui tweaks for collision modifier

13 years agoCloth: New: *simple* (OpenMP enabled) Selfcollisions available
Daniel Genrich [Tue, 12 Feb 2008 11:04:58 +0000 (11:04 +0000)]
Cloth: New: *simple* (OpenMP enabled) Selfcollisions available

13 years agoFix for bug #8245.
Janne Karhu [Tue, 12 Feb 2008 00:34:53 +0000 (00:34 +0000)]
Fix for bug #8245.

13 years ago* Fix for crash, drawing particle systems with 'col' set to draw strands in material...
Matt Ebb [Mon, 11 Feb 2008 23:24:16 +0000 (23:24 +0000)]
* Fix for crash, drawing particle systems with 'col' set to draw strands in material colour, but no material (null pointer).

13 years ago== Warning/Bug Fix ==
Martin Poirier [Mon, 11 Feb 2008 22:18:41 +0000 (22:18 +0000)]
== Warning/Bug Fix ==

Bone extension string was not long enough for new extensions .bot and .top. This was surely causing some stack memory to be overwritten...

Warning reported by JMS on french newsgroup.