blender-staging.git
8 years ago* Merged changes in the trunk up to revision 33492.
Tamito Kajiyama [Mon, 6 Dec 2010 01:23:18 +0000 (01:23 +0000)]
* Merged changes in the trunk up to revision 33492.

* Fixed a bug in listing all style modules in source/blender/blenlib/intern/bpath.c.

8 years agouse BLI_strnlen rather then strlen when comparing against fixed lengths.
Campbell Barton [Sun, 5 Dec 2010 23:50:55 +0000 (23:50 +0000)]
use BLI_strnlen rather then strlen when comparing against fixed lengths.

8 years agobpath iterator updates
Campbell Barton [Sun, 5 Dec 2010 23:14:48 +0000 (23:14 +0000)]
bpath iterator updates
- loop over sequencer plugin and texture voxel paths.
- fix leak in python bpy.utils.blend_path() and use PyUnicode_DecodeFSDefault() to ensure correct paths with different encodings.
- operators to make paths absolute & relative now redraw the view.

8 years agoDependency graph: changed DAG_id_flush_update to DAG_id_tag_update. Now it
Brecht Van Lommel [Sun, 5 Dec 2010 18:59:23 +0000 (18:59 +0000)]
Dependency graph: changed DAG_id_flush_update to DAG_id_tag_update. Now it
only tags the ID and does the actual flush/update delayed, before the next
redraw. For objects the update was already delayed, just flushing wasn't
yet.

This should help performance in python and animation editors, by making
calls to RNA property update quicker. Still need to add calls in a few
places where this was previously avoided due to bad performance.

8 years agoPartial bugfix for [#25037] , brought back Select menu in Sequencer
Peter Schlaile [Sun, 5 Dec 2010 17:56:15 +0000 (17:56 +0000)]
Partial bugfix for [#25037] , brought back Select menu in Sequencer
header...

8 years agoextensions_framework: prefer user config and scripts dirs, if set, to save addon...
Doug Hammond [Sun, 5 Dec 2010 16:39:48 +0000 (16:39 +0000)]
extensions_framework: prefer user config and scripts dirs, if set, to save addon config files to.

8 years agoProbably bugfix for [#25050] Outputing mpeg (audio in AC3 format) causes
Peter Schlaile [Sun, 5 Dec 2010 16:14:34 +0000 (16:14 +0000)]
Probably bugfix for [#25050] Outputing mpeg (audio in AC3 format) causes
audio to become buggy.

Added sensible audio preset settings for ffmpeg rendering

8 years agoRender UI: added the very important "free unused nodes" in the
Ton Roosendaal [Sun, 5 Dec 2010 14:13:57 +0000 (14:13 +0000)]
Render UI: added the very important "free unused nodes" in the
Performance panel. This should actually be default on background
render...

8 years agoMade a change as to when the view map data structure is released,
Tamito Kajiyama [Sun, 5 Dec 2010 13:12:55 +0000 (13:12 +0000)]
Made a change as to when the view map data structure is released,
with the aim of less memory consumption in stroke rendering.

8 years agoBugfix #25041
Ton Roosendaal [Sun, 5 Dec 2010 12:32:58 +0000 (12:32 +0000)]
Bugfix #25041

Sequencer crash when combining a scene strip with image strip and cross.
Code lacked proper check for byte buffer in scene...

8 years agoBug fix #25042
Ton Roosendaal [Sun, 5 Dec 2010 12:14:02 +0000 (12:14 +0000)]
Bug fix #25042

Emulate numpad option: failed to use zero key to reset color picker.

8 years agoObject transparency setting should only show on MESH type
Daniel Salazar [Sun, 5 Dec 2010 10:38:45 +0000 (10:38 +0000)]
Object transparency setting should only show on MESH type

8 years agoFix part of #25040: rendering multiple scenes from compositing nodes didn't
Brecht Van Lommel [Sun, 5 Dec 2010 10:14:34 +0000 (10:14 +0000)]
Fix part of #25040: rendering multiple scenes from compositing nodes didn't
restore current scene properly afterwards.

8 years agouse PyUnicode_DecodeFSDefault rather then PyUnicode_DecodeUTF8(str, strlen(str),...
Campbell Barton [Sun, 5 Dec 2010 09:20:18 +0000 (09:20 +0000)]
use PyUnicode_DecodeFSDefault rather then PyUnicode_DecodeUTF8(str, strlen(str), "surrogateescape"), for converting non utf8 names.
this is needed because some UTF8 names didnt resolve on windows when using surrogateescape'd strings.

This meant you couldn't export to models some directories on windows.

8 years ago- Fixed dead-lock when subviding curve
Sergey Sharybin [Sun, 5 Dec 2010 07:08:14 +0000 (07:08 +0000)]
- Fixed dead-lock when subviding curve
- Hard-limit for cuts number is set to INT_MAX, soft limit to 10 (same as for meshes)

8 years agouse constant strings for outliner menus rather then sprint'ing them together.
Campbell Barton [Sun, 5 Dec 2010 06:40:47 +0000 (06:40 +0000)]
use constant strings for outliner menus rather then sprint'ing them together.

8 years agofix for camera border going outside the clipping range while in camera view.
Campbell Barton [Sun, 5 Dec 2010 02:16:01 +0000 (02:16 +0000)]
fix for camera border going outside the clipping range while in camera view.

8 years agoFix for [#25036] boids particle from 2.49 opened in 2.5 is crash !?
Janne Karhu [Sun, 5 Dec 2010 01:48:49 +0000 (01:48 +0000)]
Fix for [#25036] boids particle from 2.49 opened in 2.5 is crash !?
* Old boids didn't have all of the necessary data for the new system.
* Changed the particles code so that a check for all necessary data is always done before starting actual dynamics calculations.

8 years agocorrection to r33469, operators return sets so string comparison isn't valid.
Campbell Barton [Sun, 5 Dec 2010 00:08:25 +0000 (00:08 +0000)]
correction to r33469, operators return sets so string comparison isn't valid.

8 years agoFixed memory leak in thumbnail_joblist_free: last image in loadimages weren't
Sergey Sharybin [Sat, 4 Dec 2010 18:34:31 +0000 (18:34 +0000)]
Fixed memory leak in thumbnail_joblist_free: last image in loadimages weren't
freed even if it's not copied to the filelist

8 years agoIRC report:
Ton Roosendaal [Sat, 4 Dec 2010 16:02:04 +0000 (16:02 +0000)]
IRC report:

Adding mesh primitive circle/cone/tube now has first vertex
on top. Looks much nicer on low vertex totals.
Fix provided by Mario G Kishalmi, thanks!

8 years agoBug fix #21900
Ton Roosendaal [Sat, 4 Dec 2010 15:45:16 +0000 (15:45 +0000)]
Bug fix #21900

Issue with Library linking: if you already have libraries linked in,
and you attempt to link more data, using internally already linked
stuff (like a group with group links) the linkage would fail. It did
resolve on save-load though.

There's a long commented history in this code explaining it. I found
out it was because of manual step-by-step linking versus normal file
reads. In the first case, the "lib pointer map" was missing references.

8 years agoCocoa : fix drag and drop was no more operational after having fullscreened the window
Damien Plisson [Sat, 4 Dec 2010 14:26:45 +0000 (14:26 +0000)]
Cocoa : fix drag and drop was no more operational after having fullscreened the window

8 years agoBugfix #21893
Ton Roosendaal [Sat, 4 Dec 2010 13:46:25 +0000 (13:46 +0000)]
Bugfix #21893

Python Operator "Delete Edge Loop" (which keeps mesh connected)
changed selection if sliding operator failed. Simply added a
check for return value. Gosh, that Python code is not bad ;)

8 years agoMaintenance,
Campbell Barton [Sat, 4 Dec 2010 13:00:28 +0000 (13:00 +0000)]
Maintenance,
- remove some redundant declarations
- changed VertexTangent and Path structs to avoid compiler alignment padding.

8 years agoBugfix #24699
Ton Roosendaal [Sat, 4 Dec 2010 12:33:45 +0000 (12:33 +0000)]
Bugfix #24699

Crash when deleting Shapekeys, while Graph or Dopesheet was visible.
Caused by RNA collection lookup, which is not checking against index
out of range errors.

Brecht might have to give blessings for this though :)

8 years agoGive functions that use printf style formatting GCC format attributes so if incorrect...
Campbell Barton [Sat, 4 Dec 2010 11:44:56 +0000 (11:44 +0000)]
Give functions that use printf style formatting GCC format attributes so if incorrect formatting is used the compiler will warn of this.
found & fixed 2x incorrect formatting args.

8 years agoBugfix #25033
Ton Roosendaal [Sat, 4 Dec 2010 11:34:26 +0000 (11:34 +0000)]
Bugfix #25033

Texture face options like "two side" were invisible, unless the
top bar "render engine" was set to Game Engine.
This is confusing, since 3d window does draw these options well.

Added back panel to show default, but with a label warning that
the options are not supported for render.

8 years agoFix for a bug in the Distance from Object modifiers.
Tamito Kajiyama [Sat, 4 Dec 2010 09:58:58 +0000 (09:58 +0000)]
Fix for a bug in the Distance from Object modifiers.
The bug was reported by Jonathan Hudson, thanks!

8 years agodisallow setting RNA attributes while drawing, this is bad practice so enforcing...
Campbell Barton [Sat, 4 Dec 2010 06:25:36 +0000 (06:25 +0000)]
disallow setting RNA attributes while drawing, this is bad practice so enforcing here has the benifit of making sure people are not manipulating blender scene data in a drawing panel for eg.

This is ifdef'd and may be disabled later on, or only enabled in debug mode.

This applies to setting any RNA value that has an ID and is not a screen or window-manager datablock.

Some addons break this rule and need fixing but from my tests blender UI scripts are ok.

8 years agominor changes to bone UI script.
Campbell Barton [Sat, 4 Dec 2010 06:21:08 +0000 (06:21 +0000)]
minor changes to bone UI script.

8 years agofix for strict prototype error.
Campbell Barton [Sat, 4 Dec 2010 05:34:16 +0000 (05:34 +0000)]
fix for strict prototype error.

8 years agoown mistake made r33442, was returning the pose channel, rather then its bone.
Campbell Barton [Sat, 4 Dec 2010 01:11:50 +0000 (01:11 +0000)]
own mistake made r33442, was returning the pose channel, rather then its bone.

8 years agoremove shadowed definitions but keep them as zero this time.
Campbell Barton [Fri, 3 Dec 2010 23:55:10 +0000 (23:55 +0000)]
remove shadowed definitions but keep them as zero this time.

8 years agoA few attempts to reduce the amount of memory consumption in Freestyle.
Tamito Kajiyama [Fri, 3 Dec 2010 23:17:49 +0000 (23:17 +0000)]
A few attempts to reduce the amount of memory consumption in Freestyle.

* Made changes to the Controller so that dynamically allocated
memory areas (e.g. imported mesh data, winged edges, and a view map)
are released soon after they become unnecessary.

* Added a new feature edge selection criterion based on image border.

When the "Selection by Image Border" option is enabled, feature edges
are selected only if they are within the border of the image being
rendered.  The border is defined either by the frame size or a border
region (specified by the Shift-B key in a 3D View window).  When large
scenes are rendered, this clipping by the image border leads to less
memory consumption.

* Enabled the "Silhouette", "Border", and "Crease" edge types of
the Selection by Edge Types option by default.

When no edge types are specified, all feature edges including "Ridge",
"Valley" and "Suggestive Contour" are detected at the cost of extra
memory consumption.  Disabling these three edge types and enabling
some other edge type leads to less memory consumption.  This change
is intended to help new Freestyle users by providing a typical, low
memory consumption default setting.

* Slightly rearranged the UI controls for feature edge selection.

8 years agoConst conflict in PIL_dynlib_find_symbol
Ton Roosendaal [Fri, 3 Dec 2010 19:42:40 +0000 (19:42 +0000)]
Const conflict in PIL_dynlib_find_symbol
Thanks wiseman!

8 years agoBugfix #2508
Ton Roosendaal [Fri, 3 Dec 2010 19:29:05 +0000 (19:29 +0000)]
Bugfix #2508

Campbell's cleanup commit  33442 today broke axes drawing.
Restored code.

8 years agoIRC fix:
Ton Roosendaal [Fri, 3 Dec 2010 18:49:38 +0000 (18:49 +0000)]
IRC fix:

Curve editmode was missing hotkey for operator "Select Inverse"
Is now added like Mesh, CTRL+I
Thanks lmg!

8 years agoIRC bug report
Ton Roosendaal [Fri, 3 Dec 2010 18:39:40 +0000 (18:39 +0000)]
IRC bug report

Text editor, "Add new" caused zero-user block.
The claim in the code why it should be decreased is dubious.
Thanks wiseman!

8 years agoIrx report:
Ton Roosendaal [Fri, 3 Dec 2010 18:35:10 +0000 (18:35 +0000)]
Irx report:

Missing void declarator in init ffmpg (appears to be error now).
Thanks lmg!

8 years agoBugfix #24568
Ton Roosendaal [Fri, 3 Dec 2010 18:26:42 +0000 (18:26 +0000)]
Bugfix #24568

The old blocking "time cursor" wasn't working anymore.
Commit 32798 overlooked that the initialization was
needed.

Now bakes show it again. Note to self: it seems to flash
slightly (like 2.49), need to check on it one day.

8 years agoBugfix #25026
Ton Roosendaal [Fri, 3 Dec 2010 17:31:34 +0000 (17:31 +0000)]
Bugfix #25026

Nurbs edit: 'switch order' crashed when order was higher than amount of
points.

8 years agoEnabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for 'const...
Campbell Barton [Fri, 3 Dec 2010 17:05:21 +0000 (17:05 +0000)]
Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for 'const char's,.

Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.

8 years agocompile fixes for mingw32.
Campbell Barton [Fri, 3 Dec 2010 16:45:04 +0000 (16:45 +0000)]
compile fixes for mingw32.

8 years agoFix for compilation error caused by strict prototype checking
Sergey Sharybin [Fri, 3 Dec 2010 14:35:10 +0000 (14:35 +0000)]
Fix for compilation error caused by strict prototype checking

8 years agoFix #25017: Bezier Curve Deform Twisting after adding Shape Keys
Sergey Sharybin [Fri, 3 Dec 2010 14:35:03 +0000 (14:35 +0000)]
Fix #25017: Bezier Curve Deform Twisting after adding Shape Keys

- Invalid step was used in curve_applyKeyVertexTilts
- Minor cleanup in editcurve stuff

8 years agoBugfix #20565
Ton Roosendaal [Fri, 3 Dec 2010 14:26:03 +0000 (14:26 +0000)]
Bugfix #20565

Material Node shaders: displaying GLSL + rendering previews crashed.
Reason was non-safe threaded access to material nodes. Now, on a preview
render, a full copy of Material is being made.

8 years ago- added GCC warning -Wstrict-prototypes
Campbell Barton [Fri, 3 Dec 2010 12:30:59 +0000 (12:30 +0000)]
- added GCC warning -Wstrict-prototypes
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.

8 years agoFix for [#24899] Sequence Transform strips don't apply animation properly to scale.
Janne Karhu [Fri, 3 Dec 2010 12:08:59 +0000 (12:08 +0000)]
Fix for [#24899] Sequence Transform strips don't apply animation properly to scale.
* Rendering a scene strip updated all animation data to it's frame, so fcurves were left with the wrong value.
* Now the animation data is recalculated to original frame after rendering each scene strip.

8 years agoAlign Objects operator was broken due to incorrect order of vector by
Daniel Salazar [Fri, 3 Dec 2010 11:05:36 +0000 (11:05 +0000)]
Align Objects operator was broken due to incorrect order of vector by
matrix multiplication

8 years agoupdates to patch from Dan Eicher, allow adding a NodeGroup through bpy.data.node_grou...
Campbell Barton [Fri, 3 Dec 2010 03:44:39 +0000 (03:44 +0000)]
updates to patch from Dan Eicher, allow adding a NodeGroup through bpy.data.node_groups.new(name, type)
made some minor changes.

8 years agofix [#24938] Seed value on Particle settings gives Error when trying to insert key.
Campbell Barton [Fri, 3 Dec 2010 02:24:21 +0000 (02:24 +0000)]
fix [#24938] Seed value on Particle settings gives Error when trying to insert key.

8 years agofix for some pedantic warnings.
Campbell Barton [Fri, 3 Dec 2010 01:52:28 +0000 (01:52 +0000)]
fix for some pedantic warnings.

8 years agoNew feature edge selection criterion based on object groups.
Tamito Kajiyama [Thu, 2 Dec 2010 23:50:10 +0000 (23:50 +0000)]
New feature edge selection criterion based on object groups.

The Freestyle tab in the Render buttons has a couple of new
options "Group" and "Group Negation".  The Group option specifies
a group of objects (defined through the Groups tab in the Object
buttons), while the Group Negation value is either INCLUSIVE or
EXCLUSIVE.  If INCLUSIVE, feature edges belonging to some object
in the group are selected.  Otherwise, those feature edges not
belonging to any object in the group are selected.

8 years agofix [#25015] Ctrl+L linking to scene list does not scroll when the list is larger...
Campbell Barton [Thu, 2 Dec 2010 22:58:23 +0000 (22:58 +0000)]
fix [#25015] Ctrl+L linking to scene list does not scroll when the list is larger than screen resolution

8 years agocorrection to error message from Dan Eicher
Campbell Barton [Thu, 2 Dec 2010 21:55:55 +0000 (21:55 +0000)]
correction to error message from Dan Eicher

8 years agofix [#24586] Report mode of console does not show proper cariage returns.
Campbell Barton [Thu, 2 Dec 2010 21:48:46 +0000 (21:48 +0000)]
fix [#24586] Report mode of console does not show proper cariage returns.
use the line iterator to split up newlines.

8 years agofix crash when report timer was set but no usable error reports were found.
Campbell Barton [Thu, 2 Dec 2010 21:40:39 +0000 (21:40 +0000)]
fix crash when report timer was set but no usable error reports were found.

8 years agoextensions_framework: fix bug that would create extra UI space when entire row is...
Doug Hammond [Thu, 2 Dec 2010 19:03:24 +0000 (19:03 +0000)]
extensions_framework: fix bug that would create extra UI space when entire row is hidden. May not be the most efficient implementation, however it is working properly now.

8 years agoBugfix #25010
Ton Roosendaal [Thu, 2 Dec 2010 18:27:04 +0000 (18:27 +0000)]
Bugfix #25010

When loading files without UI (quit.blend) you got memory-free errors
for fileselect. Pointers were NULLed where not needed.

8 years agoUpdate include paths for fonts in image stat display (rev33422).
Guillermo S. Romero [Thu, 2 Dec 2010 17:30:28 +0000 (17:30 +0000)]
Update include paths for fonts in image stat display (rev33422).

8 years agoIRC comment fix:
Ton Roosendaal [Thu, 2 Dec 2010 16:12:55 +0000 (16:12 +0000)]
IRC comment fix:

Option "free all texture-images" after render, was also
freeing unsaved painted images. Now it skips them.

8 years agoFix for [#25006] Particle system crash (missing check for negative index)
Janne Karhu [Thu, 2 Dec 2010 14:52:07 +0000 (14:52 +0000)]
Fix for [#25006] Particle system crash (missing check for negative index)

8 years agobugfix [#24913] Text bevel normals wrong
Campbell Barton [Thu, 2 Dec 2010 05:39:43 +0000 (05:39 +0000)]
bugfix [#24913] Text bevel normals wrong
error was introduced 33269, to fix [#24834].

this only reverts a small part of that commit, added note not to change this.

8 years agoFix for [#25001] Enable Smoke High Resolution is greyout after baking
Janne Karhu [Thu, 2 Dec 2010 04:47:40 +0000 (04:47 +0000)]
Fix for [#25001] Enable Smoke High Resolution is greyout after baking
* Was a bit too eager to disable stuff

8 years agouse fixed width fonts for image stat display.
Campbell Barton [Thu, 2 Dec 2010 04:23:56 +0000 (04:23 +0000)]
use fixed width fonts for image stat display.

8 years agoAdditional fix for #24958 Cloth pinning not working
Janne Karhu [Thu, 2 Dec 2010 04:06:02 +0000 (04:06 +0000)]
Additional fix for #24958 Cloth pinning not working
* Don't assume that the original dm given to cloth modifier is a cddm

8 years agoAdding some descriptions for animation-related operators that were missing them.
Joshua Leung [Thu, 2 Dec 2010 02:03:30 +0000 (02:03 +0000)]
Adding some descriptions for animation-related operators that were missing them.

8 years agopatch [#23212] Python api for Nodes
Campbell Barton [Thu, 2 Dec 2010 01:18:59 +0000 (01:18 +0000)]
patch [#23212] Python api for Nodes
from Dan Eicher (dna)

This allows automated node tree creation and editing.

developer note, made some changes to the patch.
- removed incorrect use of container_of(), GCC only also, search for the scene instead.
- commented socket min/max access, these are internal use only as far as I can tell.
- commented group/ungroup functions, these use the selection context and are not really data level functions.
- use remove() rather then delete()

8 years agofixed crash with rigid body constraints not having their child pointer read correctly.
Campbell Barton [Wed, 1 Dec 2010 23:40:21 +0000 (23:40 +0000)]
fixed crash with rigid body constraints not having their child pointer read correctly.

8 years agoBugfix #24999
Ton Roosendaal [Wed, 1 Dec 2010 17:47:38 +0000 (17:47 +0000)]
Bugfix #24999

Array Modifier: edge indices could be equal to numVerts, causing
bad crashes in derivedmesh. Similar fix to previous here with
face indices. Should poke the coder of this... for now it survives OK.

8 years agoBugfix #24890
Ton Roosendaal [Wed, 1 Dec 2010 15:58:45 +0000 (15:58 +0000)]
Bugfix #24890

Particle cache reading: crash when loading .blend on a different
endian system, code was dumping arrays in .blend without DNA.

General warning for devs: avoid generic write_data and dynamic
arrays in DNA.

8 years agoBugfix #24903
Ton Roosendaal [Wed, 1 Dec 2010 13:18:24 +0000 (13:18 +0000)]
Bugfix #24903

GRLESS key was missing in RNA key list, so it didn't show up in
keymap editor. Internally support for it worked already.

Thanks to Milos Zajic for showing the fix.

8 years agoFix for [#24958] Cloth pinning not working
Janne Karhu [Wed, 1 Dec 2010 12:23:10 +0000 (12:23 +0000)]
Fix for [#24958] Cloth pinning not working
* Cloth now uses the original derived mesh for simulation and a new dm only for applying the simulation result.
* Reverted Campbell's temporary workaround r33406.

8 years agopartial fix [#23265] matrix_world rna path is visible but returns 0 to drivers withou...
Campbell Barton [Wed, 1 Dec 2010 10:17:31 +0000 (10:17 +0000)]
partial fix [#23265] matrix_world rna path is visible but returns 0 to drivers without error however accessed
this report raised a number of problems with rna paths, while we still dont have multi-dimensional array access, invalid paths were being accepted which confused things.

rna path resolving code was accepting all sorts of invalid input because atoi() just returns 0 for non numeric input.
now check if 0 number == '0' character.

8 years agofix for crashes trying to resolve paths "location[]" or "location.."
Campbell Barton [Wed, 1 Dec 2010 09:12:54 +0000 (09:12 +0000)]
fix for crashes trying to resolve paths "location[]" or "location.."

8 years agoincrease the reference counts when setting default scene compo nodes else removing...
Campbell Barton [Wed, 1 Dec 2010 08:49:08 +0000 (08:49 +0000)]
increase the reference counts when setting default scene compo nodes else removing them can set the user count < 0.

8 years agodisable redcode support for cmake & scons-freebsd
Campbell Barton [Wed, 1 Dec 2010 07:25:59 +0000 (07:25 +0000)]
disable redcode support for cmake & scons-freebsd

8 years agoquit blender if the first X11 window fails to open.
Campbell Barton [Wed, 1 Dec 2010 07:15:05 +0000 (07:15 +0000)]
quit blender if the first X11 window fails to open.
mainly just to avoid a segfault so the user knows its not a bug.

8 years agoworkaround [#24958] Cloth pinning not working
Campbell Barton [Wed, 1 Dec 2010 05:59:11 +0000 (05:59 +0000)]
workaround [#24958] Cloth pinning not working
detailed explanation as to why this is needed in report.

8 years agobugfix [#23406] DPX Images load darker then saved, UI broken.
Campbell Barton [Wed, 1 Dec 2010 02:54:10 +0000 (02:54 +0000)]
bugfix [#23406] DPX Images load darker then saved, UI broken.
- a linear float buffer was being created and saved into a non-linear DPX/Cineon file.
- removed the UI since the settings are not used at the moment.

added a utility function IMB_float_profile_ensure(), which returns a float buffer in the requested profile, using the existing if needed or returning an allocated buffer if the profile is different to that of the ImBuf. - Useful this case where the save function has its own linear setting.

8 years agofix for some mistakes in recent commit.
Campbell Barton [Wed, 1 Dec 2010 02:40:13 +0000 (02:40 +0000)]
fix for some mistakes in recent commit.

8 years agopatch from JacobF on IRC, copy smoke settings. double checked none of these are used...
Campbell Barton [Wed, 1 Dec 2010 02:28:08 +0000 (02:28 +0000)]
patch from JacobF on IRC, copy smoke settings. double checked none of these are used for runtime.

8 years agofix [#24990] When extruding bones the outliner does not immediately update
Campbell Barton [Tue, 30 Nov 2010 23:50:21 +0000 (23:50 +0000)]
fix [#24990] When extruding bones the outliner does not immediately update
also changed notify functions for new bone, hide/reveal, switch direction and parent.
these used ND_POSE or ND_DRAW, replaced with ND_BONE_SELECT since this changes editmode bone hierarchy/selection.

8 years agobugfix [#22638] Alpha channel not saved when using texture paint
Campbell Barton [Tue, 30 Nov 2010 23:38:31 +0000 (23:38 +0000)]
bugfix [#22638] Alpha channel not saved when using texture paint
check for alpha channel while saving images that have been painted onto.
It would be nicer to do this while in paint mode except this isn't so simple with project paint using multiple images at once.

8 years agominor console changes.
Campbell Barton [Tue, 30 Nov 2010 22:39:41 +0000 (22:39 +0000)]
minor console changes.
- remove report argument from console functions.
- don't update the scroll area while drawing, do this within operators instead.
- dont redraw while selecting text unless selection changes.

8 years agobugfix [#23423] Multi-window : closing game windows cause blender crash
Campbell Barton [Tue, 30 Nov 2010 21:51:03 +0000 (21:51 +0000)]
bugfix [#23423] Multi-window : closing game windows cause blender crash
detect closing window while the BGE runs and exit without crashing, as if Esc was pressed.

8 years agoSmoke now uses only one point cache where both normal and high resolution smoke are...
Janne Karhu [Tue, 30 Nov 2010 21:31:18 +0000 (21:31 +0000)]
Smoke now uses only one point cache where both normal and high resolution smoke are stored together:
* Separate caches were causing quite a lot of problems both in principle and practice.
* For example it doesn't really make sense to have different frame ranges for normal and high resolution smoke, but this was fully possible before.
* Also to fully bake the smoke you had to do a "Bake All Dynamics", which completely defeats the whole point of the feature!
* As a result of this change the smoke cache usage is much much simpler and less error prone.
* This is quite a big change, but hopefully there should be less rather than more problems as a result :)

Some other related changes:
* Changing the cache name now works for disk caches properly too, it now just renames the cache files so should be faster too!
* Smoke is now always forced to disk cache with step 1 on file load as there were some strange cases where smoke was trying to use memory cache.
* Disabled smoke debug prints from console.
* Disabled changing smoke parameters when smoke is baked.

Note to users: The unfortunate side effect of this is that old high resolution simulations have to be baked again, but in return you get much better and more logical functionality. Sorry none the less!

8 years agominor rna changes
Campbell Barton [Tue, 30 Nov 2010 20:22:26 +0000 (20:22 +0000)]
minor rna changes
- set matrix values not to be animatable
- some matrix values were still accessed as 1d arrays.

8 years agomissing NULL check in own recent commit,
Campbell Barton [Tue, 30 Nov 2010 19:12:17 +0000 (19:12 +0000)]
missing NULL check in own recent commit,

8 years agoremove unmaintained windows and unix game engine plugin code.
Campbell Barton [Tue, 30 Nov 2010 19:08:44 +0000 (19:08 +0000)]
remove unmaintained windows and unix game engine plugin code.

8 years agoSVN maintenance.
Guillermo S. Romero [Tue, 30 Nov 2010 19:06:34 +0000 (19:06 +0000)]
SVN maintenance.

8 years agoAdd option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime...
Campbell Barton [Tue, 30 Nov 2010 18:52:39 +0000 (18:52 +0000)]
Add option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime & sndfile options.

8 years agoBugfix #24976
Ton Roosendaal [Tue, 30 Nov 2010 18:46:34 +0000 (18:46 +0000)]
Bugfix #24976

Compositor: MultiLayer image node: on using layer menu, the entire
multilayer file got freed, causing node to collapse and open full
again after a composite.

8 years agomisc small changes.
Campbell Barton [Tue, 30 Nov 2010 18:07:44 +0000 (18:07 +0000)]
misc small changes.
- commented unused View3D->flag's
- popup dialog now centers over the mouse
- only overwrite image alpha with render settings on save if saving the render result.

8 years agoBugfix #24986
Ton Roosendaal [Tue, 30 Nov 2010 15:39:38 +0000 (15:39 +0000)]
Bugfix #24986

When duplicating a mesh that has a mask modifier on it,
the invert option of that modifier dis not copy over.

Report + fix provided by Jacob F. Thanks!

8 years agobugfix [#24974] "select all" in weight paint -> face selection mode selects all bones...
Campbell Barton [Tue, 30 Nov 2010 05:15:58 +0000 (05:15 +0000)]
bugfix [#24974] "select all" in weight paint -> face selection mode selects all bones instead of all faces
face mask mode overrides pose mode keys. also removed function call from transform code.

8 years agobugfix [#24798] Texture panels are shown in wrong order
Campbell Barton [Tue, 30 Nov 2010 01:03:17 +0000 (01:03 +0000)]
bugfix [#24798] Texture panels are shown in wrong order

8 years agoFix for a wrong call of RNA_def_struct_sdna().
Tamito Kajiyama [Mon, 29 Nov 2010 21:32:47 +0000 (21:32 +0000)]
Fix for a wrong call of RNA_def_struct_sdna().

8 years agoFix for properly unlinking target object pointers when objects are deleted
Tamito Kajiyama [Mon, 29 Nov 2010 21:24:55 +0000 (21:24 +0000)]
Fix for properly unlinking target object pointers when objects are deleted
from scenes.