9 years agoadd BLI_ghash_pop() which returns the value for a key and removes it at the same...
Campbell Barton [Mon, 28 May 2012 19:33:14 +0000 (19:33 +0000)]
add BLI_ghash_pop() which returns the value for a key and removes it at the same time, saves a lookup if you need to check if the item exists before removing.

9 years agoCycles: fixes to make CUDA 4.2 work, compiling gave errors in shadows and
Brecht Van Lommel [Mon, 28 May 2012 19:21:13 +0000 (19:21 +0000)]
Cycles: fixes to make CUDA 4.2 work, compiling gave errors in shadows and
other places, was mainly due to instancing not working, but also found
issues in procedural textures.

The problem was with --use_fast_math, this seems to now have way lower
precision for some operations. Disabled this flag and selectively use
fast math functions. Did not find performance regression on GTX 460 after
doing this.

9 years agoFix 2 #29846. Effector point ave variable can be NULL.
Lukas Toenne [Mon, 28 May 2012 19:10:57 +0000 (19:10 +0000)]
Fix 2 #29846. Effector point ave variable can be NULL.

9 years agoimage.gl_touch: wasn't passing the parameters to gl_load
Dalai Felinto [Mon, 28 May 2012 18:32:18 +0000 (18:32 +0000)]
image.gl_touch: wasn't passing the parameters to gl_load

9 years agostyle cleanup: also fix for TIMEIT macro
Campbell Barton [Mon, 28 May 2012 18:12:08 +0000 (18:12 +0000)]
style cleanup: also fix for TIMEIT macro

9 years agoimage.gl_load: moving error cleaning to before all gl calls"
Dalai Felinto [Mon, 28 May 2012 17:47:42 +0000 (17:47 +0000)]
image.gl_load: moving error cleaning to before all gl calls"

9 years agoimage.gl_load(): clear glGetError buffer before getting a new one
Dalai Felinto [Mon, 28 May 2012 17:03:13 +0000 (17:03 +0000)]
image.gl_load(): clear glGetError buffer before getting a new one

9 years agoFix #29846, Dynamic rotation of particles not affected by forcefields 2.61 64 bit...
Lukas Toenne [Mon, 28 May 2012 16:58:12 +0000 (16:58 +0000)]
Fix #29846, Dynamic rotation of particles not affected by forcefields 2.61 64 bit. Patch by Arno Mayrhofer (azrael3000).

Minor fix by me to initialize the effector point angular velocity vector correctly.

9 years agobpy.utils.time_to_frame() and frame_to_time() utility functions.
Campbell Barton [Mon, 28 May 2012 16:06:38 +0000 (16:06 +0000)]
bpy.utils.time_to_frame() and frame_to_time() utility functions.

9 years agofix for own recent commit removing NULL checks from TREESTORE macro - this use needed it.
Campbell Barton [Mon, 28 May 2012 15:37:43 +0000 (15:37 +0000)]
fix for own recent commit removing NULL checks from TREESTORE macro - this use needed it.

9 years ago* Some code optimizations to panel collapse code, to avoid calculations for each...
Thomas Dinges [Mon, 28 May 2012 14:57:38 +0000 (14:57 +0000)]
* Some code optimizations to panel collapse code, to avoid calculations for each panel. Suggested by "Bao 2".

9 years agoFix for node linking operator, which could insert node link into the list twice and...
Lukas Toenne [Mon, 28 May 2012 14:39:55 +0000 (14:39 +0000)]
Fix for node linking operator, which could insert node link into the list twice and cause deadlock due to incomplete test.

9 years agoSmoke: Fix messed up shadow display with OpenMP. This needs fixing. For now disable...
Daniel Genrich [Mon, 28 May 2012 14:31:08 +0000 (14:31 +0000)]
Smoke: Fix messed up shadow display with OpenMP. This needs fixing. For now disable openmp for that function. Shadow calculation would be better raytraced on GPU or using shaders for the future.

Part of my Blender Smoke Development Phase III.

(accidently commited this to smoke2 branch first)

9 years agoA few minor UI message fixes...
Bastien Montagne [Mon, 28 May 2012 14:01:42 +0000 (14:01 +0000)]
A few minor UI message fixes...

9 years agoSequencer: replace clamp+round of multiplied color value with FTOCHAR macro,
Sergey Sharybin [Mon, 28 May 2012 10:39:22 +0000 (10:39 +0000)]
Sequencer: replace clamp+round of multiplied color value with FTOCHAR macro,

Should solve issues with building blender in release environment, should be
no functional changes.

9 years agoFixed crash opening files with missed libraries.
Sergey Sharybin [Mon, 28 May 2012 10:32:38 +0000 (10:32 +0000)]
Fixed crash opening files with missed libraries.

9 years agoScons / MSVC - Windows x64
Thomas Dinges [Mon, 28 May 2012 09:20:04 +0000 (09:20 +0000)]
Scons / MSVC - Windows x64
* SSE/SSE2 is an unknown option for the compiler (Command line warning D9002 : ignoring unknown option '/arch:SSE2'), so it can be left out because on x64 it automatically builds with SSE and SSE2.

9 years agoFix [#31621] Face Angles Drawn in Strange Places
Bastien Montagne [Mon, 28 May 2012 09:01:43 +0000 (09:01 +0000)]
Fix [#31621] Face Angles Drawn in Strange Places

When do_global is True, don’t compute face angles/area positions based on ob-matrix-transformed coordinates!

9 years agomove mouse select options into their own property function - more operators should...
Campbell Barton [Mon, 28 May 2012 05:45:19 +0000 (05:45 +0000)]
move mouse select options into their own property function - more operators should use these eventually

9 years agoUser Interface Panels:
Thomas Dinges [Mon, 28 May 2012 00:02:24 +0000 (00:02 +0000)]
User Interface Panels:
* Add a solo mode for panels, CTRL+LMB on a panel header.
This closes all other panels.

Patch [#22233] by sneg negr (sneg) with modifications by myself to exclude panels with hidden header (like context)

9 years agomissing from previous commit
Campbell Barton [Sun, 27 May 2012 21:56:19 +0000 (21:56 +0000)]
missing from previous commit

9 years ago== Sequencer / Color balance ==
Peter Schlaile [Sun, 27 May 2012 20:57:24 +0000 (20:57 +0000)]
== Sequencer / Color balance ==

Make the color balance inner working more accurate in the byte -> byte
case, probably also fixing (can't check I'm on 32bit) the bug mentioned
on yellow's blog:

9 years agostyle cleanup: defines with braces
Campbell Barton [Sun, 27 May 2012 20:13:59 +0000 (20:13 +0000)]
style cleanup: defines with braces

9 years agoCollada exporter: Added name attribute to nodes in visual_scene elements (name = id)
Gaia Clary [Sun, 27 May 2012 19:44:07 +0000 (19:44 +0000)]
Collada exporter: Added name attribute to nodes in visual_scene elements (name = id)

9 years agostyle cleanup
Campbell Barton [Sun, 27 May 2012 19:40:36 +0000 (19:40 +0000)]
style cleanup

9 years agostyle cleanup: draw node
Campbell Barton [Sun, 27 May 2012 19:38:10 +0000 (19:38 +0000)]
style cleanup: draw node

9 years agoSmoke:
Daniel Genrich [Sun, 27 May 2012 18:45:16 +0000 (18:45 +0000)]
a) Another boundary fix. Resulted in smoke getting "sucked" back into the domain
b) Disabling substeps (internal thing). Fixes arbitrary explosions/instabilities.

Part of my Blender Smoke Development.

9 years agoremove NULL check in TREESTORE macro, the return NULL value wasny checked for by...
Campbell Barton [Sun, 27 May 2012 14:43:18 +0000 (14:43 +0000)]
remove NULL check in TREESTORE macro, the return NULL value wasny checked for by any callers (ie - it would crash later if the arg was NULL anyway)

also comment on the speed of check_persistent()

9 years agoUse BKE_movieclip_get_size rather than BKE_movieclip_get_ibuf and use ibuf's resoluti...
Sergey Sharybin [Sun, 27 May 2012 14:30:45 +0000 (14:30 +0000)]
Use BKE_movieclip_get_size rather than BKE_movieclip_get_ibuf and use ibuf's resolution in tile's Movie Clip node

9 years agoFix mistmatch in usage of delete vs. delete [] in tiles reported by valgrind profiler.
Sergey Sharybin [Sun, 27 May 2012 14:17:34 +0000 (14:17 +0000)]
Fix mistmatch in usage of delete vs. delete [] in tiles reported by valgrind profiler.

9 years agoPatch #31563: Additional include directory for FFMPEG
Sergey Sharybin [Sun, 27 May 2012 13:44:21 +0000 (13:44 +0000)]
Patch #31563: Additional include directory for FFMPEG

Fedora 16 is still using /usr/include/ffmpeg, not /usr/include to store FFmpeg's
headers. Added it to search paths.

Also remove FFmpeg include directory listed in FFMPEG_INCLUDE_DIRS twice

Patch by Arno Mayrhofer (aka azrael3000), thanks!

9 years agoFix #26876: Soft Body ignores Goal on Lattice
Sergey Sharybin [Sun, 27 May 2012 13:33:09 +0000 (13:33 +0000)]
Fix #26876: Soft Body ignores Goal on Lattice

Patch by Arno Mayrhofer (aka azrael3000) with only slight code style modifications, thanks!

9 years agocode cleanup: remove mode comments, these were applied very un-evenly across a few...
Campbell Barton [Sun, 27 May 2012 13:22:43 +0000 (13:22 +0000)]
code cleanup: remove mode comments, these were applied  very un-evenly across a few files.

9 years agorna_def_composite_nodetree_api() getting passed the wrong prop
Dan Eicher [Sun, 27 May 2012 13:17:31 +0000 (13:17 +0000)]
rna_def_composite_nodetree_api() getting passed the wrong prop

9 years agocode cleanup: defines with braces - end with '(void)0' so callers must end with ...
Campbell Barton [Sun, 27 May 2012 12:21:13 +0000 (12:21 +0000)]
code cleanup: defines with braces - end with '(void)0' so callers must end with ';' like normal function.
... without this some editors dont parse the source so well.

9 years agowhen SCREEN_OT_keyframe_jump fails dont send notifiers or call sound_seek_scene
Campbell Barton [Sun, 27 May 2012 11:22:06 +0000 (11:22 +0000)]
when SCREEN_OT_keyframe_jump fails dont send notifiers or call sound_seek_scene

9 years agocode cleanup:
Campbell Barton [Sun, 27 May 2012 11:10:27 +0000 (11:10 +0000)]
code cleanup:
style and remove BM_face_find_longest/shortest_edge functions,
... instead use BM_face_find_longest/shortest_loop()->e

9 years agostyle cleanup: nodes, also rename chunksize -> chunk_size
Campbell Barton [Sun, 27 May 2012 11:08:47 +0000 (11:08 +0000)]
style cleanup: nodes, also rename chunksize -> chunk_size

9 years agoFix #31606: pg up/down does not work for changing falloff for proportional editing
Sergey Sharybin [Sun, 27 May 2012 10:08:37 +0000 (10:08 +0000)]
Fix #31606: pg up/down does not work for changing falloff for proportional editing

Initially issue was caused by non-proportional edge slide patch in rev46927 which
had several wrong things:

- It introduced new events TFM_WHEEL_DOWN_EVT/TFM_WHEEL_UP_EVT which were defined
  as per-bit OR between edge slide and proportional editing modal events, but
  the issue is that modal events are not bit masks and that meant that new events
  were defined as 20|24 and 21|25 which is a bit strange.
- Another this was caused by the fact, that keymap wasn't creating for some specific
  transform modal keymap item -- it used to be tried to create single shortcut for
  two different modal events, which isn't supported by keymaps and resulted by
  artifacts in keymap editor interface (nodal event type was empty for wheel movements).
  That was caused by different events used by modal keymap and defining shortcuts.
- Actual issue which prevented PgUP/PGDOWN to work was mixing using that new events
  for wheel scrolling in switch statements which doesn't do bitmask check.

Solved by separating keymaps used for proportional editing and edge slide -- now
it's mouse Wheel for proportional editing and Alt-Wheel for edge slide. If someone
would want to have single shortcut for this two events it'll imply one of the follofing

- Support poll function for shortcuts, so keymap would definitely know which
  modal event to send to operator.
  they can share the same shortcut with current design of keymaps.

9 years agocmake edits
Campbell Barton [Sun, 27 May 2012 10:03:13 +0000 (10:03 +0000)]
cmake edits
- only show mingw option when building with mingw
- always run cmake configure with convenience build targets so failed configurations stop re-configuring.
- disable WITH_GHOST_XDND in 'make lite'

9 years agostyle cleanup
Campbell Barton [Sun, 27 May 2012 00:36:50 +0000 (00:36 +0000)]
style cleanup

9 years ago[#31607] Collada: (Exporter) Implementation of 'use Object Instantiation' Option
Gaia Clary [Sat, 26 May 2012 22:46:28 +0000 (22:46 +0000)]
[#31607] Collada: (Exporter) Implementation of 'use Object Instantiation' Option

9 years agocode cleanup: use const float and define array size
Campbell Barton [Sat, 26 May 2012 22:21:56 +0000 (22:21 +0000)]
code cleanup: use const float and define array size

9 years agoFix for smoke boundary conditions: "Open borders" behaved differently for positive...
Miika Hamalainen [Sat, 26 May 2012 21:36:19 +0000 (21:36 +0000)]
Fix for smoke boundary conditions: "Open borders" behaved differently for positive and negative axises.
+ Some code cleanup.

9 years agoDelete skin customdata if all skin modifiers are removed.
Nicholas Bishop [Sat, 26 May 2012 21:11:23 +0000 (21:11 +0000)]
Delete skin customdata if all skin modifiers are removed.

Fix for bug [#31604] "Skin Modifier - Mark Root Bug?"

Essentially the same as multires customdata deletion.

9 years agoFix #31538: Wrong colors after reloading file with exr image
Sergey Sharybin [Sat, 26 May 2012 17:04:51 +0000 (17:04 +0000)]
Fix #31538: Wrong colors after reloading file with exr image

Issue was caused by generated images had got no profile set (IB_PROFILE_NONE)
which confused OpenEXR saver (which makes sRGB conversion for profiles which
are not linear).

Actually this is much deeper issue which would require the whole color pipeline
workflow (which would happen at some point when currently urgent stuff is resolved),
but having correct profile set for generated images would still be helpful.

9 years agocode cleanup: use array size and const for vector args
Campbell Barton [Sat, 26 May 2012 16:04:31 +0000 (16:04 +0000)]
code cleanup: use array size and const for vector args

9 years agoAdd frame_duration read-only member to Image RNA struct, returns movie's length in...
Bastien Montagne [Sat, 26 May 2012 14:53:33 +0000 (14:53 +0000)]
Add frame_duration read-only member to Image RNA struct, returns movie's length in frames (or 1 for still images).

9 years agoupdate python script memory printout to python3 and some style cleanup
Campbell Barton [Sat, 26 May 2012 13:59:34 +0000 (13:59 +0000)]
update python script memory printout to python3 and some style cleanup

9 years agostyle cleanup: our own malloc code
Campbell Barton [Sat, 26 May 2012 13:36:12 +0000 (13:36 +0000)]
style cleanup: our own malloc code

9 years agocode cleanup: dutch -> english (comments)
Campbell Barton [Sat, 26 May 2012 13:31:57 +0000 (13:31 +0000)]
code cleanup: dutch -> english (comments)

9 years agofix for own error in applying patch
Campbell Barton [Sat, 26 May 2012 13:08:42 +0000 (13:08 +0000)]
fix for own error in applying patch

9 years agoadd vector versions of hsv_to_rgb, rgb_to_hsv & rgb_to_hsv_compat
Campbell Barton [Sat, 26 May 2012 11:01:01 +0000 (11:01 +0000)]
add vector versions of hsv_to_rgb, rgb_to_hsv & rgb_to_hsv_compat

9 years agopatch [#31265] Warning Fixes 02/05/2012
Campbell Barton [Sat, 26 May 2012 10:05:22 +0000 (10:05 +0000)]
patch [#31265] Warning Fixes 02/05/2012
from Jason Wilkins (jwilkins)

only applied some parts:
* const correctness
* moved a variable into a move local scope so it is also inside a #if/endif and does not end up conditionally unused

9 years agopatch [#31578] Standard-conformal sets for .report() and operator return values
Campbell Barton [Sat, 26 May 2012 09:55:00 +0000 (09:55 +0000)]
patch [#31578] Standard-conformal sets for .report() and operator return values
by Sebastian Nell (codemanx)

This patch contains many changes - mostly to addons committing this correction to trunk.

9 years agoFix reading freed memory when opening file by click on it on splash screen
Sergey Sharybin [Sat, 26 May 2012 09:49:54 +0000 (09:49 +0000)]
Fix reading freed memory when opening file by click on it on splash screen

Issue was introduced by yesterday's commit 47021 and caused by some handler's
which is getting called from ui_handler_popup frees event.

Worked around a bit by storing return value for ui_handler_popup before running
other handlers, but this only means global refactor of even handling order is
getting closer and closer.

9 years agopatch [#31579] Solidify modifier: Add new option "Flip Normals"
Campbell Barton [Sat, 26 May 2012 09:39:04 +0000 (09:39 +0000)]
patch [#31579] Solidify modifier: Add new option "Flip Normals"

- previous commit was so similar to the patch Shinsuke wrote, better to add him as contributor, this commit will add to generated credits.
- this commit has no functional changes.

9 years agosolidify option to flip normals
Campbell Barton [Sat, 26 May 2012 09:18:47 +0000 (09:18 +0000)]
solidify option to flip normals

9 years agoFix dummy cp/pt error (harmless in blender itself, but breaking doc and i18n tools...
Bastien Montagne [Sat, 26 May 2012 08:31:34 +0000 (08:31 +0000)]
Fix dummy cp/pt error (harmless in blender itself, but breaking doc and i18n tools...).

9 years agoinitialize bake action vars from context
Campbell Barton [Sat, 26 May 2012 00:46:12 +0000 (00:46 +0000)]
initialize bake action vars from context

9 years agoprevious commit didnt build - add back enum and note that its a copy because of linki...
Campbell Barton [Sat, 26 May 2012 00:41:11 +0000 (00:41 +0000)]
previous commit didnt build - add back enum and note that its a copy because of linking error

9 years agoSVN maintenance.
Guillermo S. Romero [Sat, 26 May 2012 00:33:46 +0000 (00:33 +0000)]
SVN maintenance.

9 years agocode cleanup: remove duplicate enum
Campbell Barton [Sat, 26 May 2012 00:06:30 +0000 (00:06 +0000)]
code cleanup: remove duplicate enum

9 years agoFix most (all?) image space i18n UI bugs...
Bastien Montagne [Fri, 25 May 2012 17:58:15 +0000 (17:58 +0000)]
Fix most (all?) image space i18n UI bugs...

9 years agoFix a bad bug with direct/indirect linking since 2.5. Indirectly linked libraries
Brecht Van Lommel [Fri, 25 May 2012 17:13:30 +0000 (17:13 +0000)]
Fix a bad bug with direct/indirect linking since 2.5. Indirectly linked libraries
could get loaded twice in some cases, causing issues with e.g. node groups.

9 years agoFix #31514: Open blends via drag-n'-drop doesn't work when splash screen is on
Sergey Sharybin [Fri, 25 May 2012 14:57:17 +0000 (14:57 +0000)]
Fix #31514: Open blends via drag-n'-drop doesn't work when splash screen is on

Do not block EVT_DROP event from popup handler.
Not ideal solution sine it'll be much nicer to cleanup event handling order,
but should be acceptable for now.

9 years agofix [#31597] Operator Preset: Python Warning whenever a preset is executed (seen...
Gaia Clary [Fri, 25 May 2012 14:08:50 +0000 (14:08 +0000)]
fix [#31597] Operator Preset: Python Warning whenever a preset is executed (seen on Windows)

9 years agoRemoved setting of filepath from Operator Preset for the Collada Exporter (Second...
Gaia Clary [Fri, 25 May 2012 13:50:32 +0000 (13:50 +0000)]
Removed setting of filepath from Operator Preset for the Collada Exporter (Second Life presets)

9 years agoFix for last commit, forgot to update Screen.is_animation_playing python property.
Brecht Van Lommel [Fri, 25 May 2012 12:56:29 +0000 (12:56 +0000)]
Fix for last commit, forgot to update Screen.is_animation_playing python property.

9 years agopatch [#31594] [Documentation]: fix for example in bge.render.rst
Campbell Barton [Fri, 25 May 2012 12:37:14 +0000 (12:37 +0000)]
patch [#31594] [Documentation]: fix for example in bge.render.rst
by Philipp Oeser (lichtwerk)

9 years agoAnimation playback: now all windows are update during playback, rather than
Brecht Van Lommel [Fri, 25 May 2012 12:37:11 +0000 (12:37 +0000)]
Animation playback: now all windows are update during playback, rather than
just the active window.

9 years agoUnix: enable use of XDG paths for storing Blender configuration on Linux/BSD/..,
Brecht Van Lommel [Fri, 25 May 2012 12:08:29 +0000 (12:08 +0000)]
Unix: enable use of XDG paths for storing Blender configuration on Linux/BSD/..,
starting from version 2.64. Unless you have a special system setup, this means the
will be in ~/.config/blender rather than ~/.blender.

When the version number is changed to 2.64, the "Copy Previous Settings" operator
in the splash will copy the settings to the new location.

XDG base directory specification:

9 years agoAdded a Factory Operator Preset for the Collada Exporter (Second Life presets)
Gaia Clary [Fri, 25 May 2012 11:43:57 +0000 (11:43 +0000)]
Added a Factory Operator Preset for the Collada Exporter (Second Life presets)

9 years agoFix #31587: loading image sequence by selecting all images does not work in MCE
Sergey Sharybin [Fri, 25 May 2012 11:40:45 +0000 (11:40 +0000)]
Fix #31587: loading image sequence by selecting all images does not work in MCE

Now loading image sequence behaves in the same way as sequencer when all images
are selected. In fact, in this case first image from selection would be used
as first frame of image sequence, so this behavior does not reflect possible
gaps in selection.

Old behavior with selecting first file only is still relevant.

9 years agostyle cleanup
Campbell Barton [Fri, 25 May 2012 09:51:53 +0000 (09:51 +0000)]
style cleanup

9 years agoFixed smoke 3D-view issues: Preview became invisible from certain angles if domain...
Miika Hamalainen [Fri, 25 May 2012 09:40:56 +0000 (09:40 +0000)]
Fixed smoke 3D-view issues: Preview became invisible from certain angles if domain size was < 1.0 and density+shading strength changed depended on domain size.

9 years ago3D View: add Backface Culling option, to hide faces when seen from the back side,
Brecht Van Lommel [Fri, 25 May 2012 09:26:47 +0000 (09:26 +0000)]
3D View: add Backface Culling option, to hide faces when seen from the back side,
found in the Display panel.

Patch by Simon Kirk and Irie Shinsuke, refactored to also work for non-mesh objects
and avoid globals.

9 years agocode cleanup: solidify modifier - remove dead assignment and unneeded NULL check.
Campbell Barton [Fri, 25 May 2012 06:54:01 +0000 (06:54 +0000)]
code cleanup: solidify modifier - remove dead assignment and unneeded NULL check.

9 years agoSmoke: Start fixing scaling issues which happen with non cube-shaped domains.
Daniel Genrich [Thu, 24 May 2012 23:50:20 +0000 (23:50 +0000)]
Smoke: Start fixing scaling issues which happen with non cube-shaped domains.
Detail: Smoke solver and Blender side of smoke now share the same cell length.

First reported by the Sintel artists long ago, again reported by MiikaH.

Part of my Smoke Development Project Phase III.

9 years agoremove some float/double conversions
Campbell Barton [Thu, 24 May 2012 21:58:12 +0000 (21:58 +0000)]
remove some float/double conversions

9 years agoModifications to the operator:
Nathan Vegdahl [Thu, 24 May 2012 21:05:27 +0000 (21:05 +0000)]
Modifications to the operator:

1. Two new boolean options have been added to the operator: "deselect"
   and "toggle".
2. The previous behavior of "extend" (toggling the selection) has
   been moved to the "toggle" option.
3. "extend" now only extends the selection, it never deselects.
4. "deselect" is pretty self-explanatory: it deselects (i.e. opposite
   of extend).
5. The built-in keymap has been changed to use "toggle" where
   "extend" was used before for this operator, to maintain the
   previous behavior in the default keymap.

In short, this works towards making "extend" and "deselect" fully
consistent across all selection tools (adding to and removing from
selection, respectively), but still preserves the old behavior
as well.

(Patch reviewed by Brecht.)

9 years agoFix bug [#31512] Focus Zoom on text object with modifers fails
Nicholas Bishop [Thu, 24 May 2012 20:20:12 +0000 (20:20 +0000)]
Fix bug [#31512] Focus Zoom on text object with modifers fails

Change BKE_object_minmax() to use the same logic as meshes: use the
object bounding box if available, since it will include the modifier
DM output.

9 years agoFix bug #31582, Crash with Skin modifier
Nicholas Bishop [Thu, 24 May 2012 19:41:09 +0000 (19:41 +0000)]
Fix bug #31582, Crash with Skin modifier

Buffer overflow error in collecting split_face vertices.

9 years agoSmoke: Fix wrong maximum timestep, resulting in exploding/unstable fluids.
Daniel Genrich [Thu, 24 May 2012 18:22:36 +0000 (18:22 +0000)]
Smoke: Fix wrong maximum timestep, resulting in exploding/unstable fluids.

Part of my Smoke Development project.
In conjunction with MiikaH and his gSoC project.

9 years agostyle cleanup: brace placement/newlines
Campbell Barton [Thu, 24 May 2012 16:35:45 +0000 (16:35 +0000)]
style cleanup: brace placement/newlines

9 years agoPatch #31570: Implementation of 'Include bone children' Option
Gaia Clary [Thu, 24 May 2012 14:56:09 +0000 (14:56 +0000)]
Patch #31570: Implementation of 'Include bone children' Option

9 years agoFix new compositor color to value/bw conversion working different than it did
Brecht Van Lommel [Thu, 24 May 2012 14:19:20 +0000 (14:19 +0000)]
Fix new compositor color to value/bw conversion working different than it did
before. It doesn't make much sense to always multiply with alpha, especially
if it's a premul image that already has it multiplied in.

Patch by Irie Shinsuke.

9 years agoGraph Editor - View All/Selected now includes handles for calculating extents of
Joshua Leung [Thu, 24 May 2012 13:52:25 +0000 (13:52 +0000)]
Graph Editor - View All/Selected now includes handles for calculating extents of

It is possible to get the old behaviour (handles excluded) by bringing up the
Operator Properties (F6) while in the Graph Editor (this doesn't work elsewhere
due to the context requirements of this stuff).

9 years agostyle cleanup
Campbell Barton [Thu, 24 May 2012 13:18:53 +0000 (13:18 +0000)]
style cleanup

9 years agostyle cleanup
Campbell Barton [Thu, 24 May 2012 10:16:42 +0000 (10:16 +0000)]
style cleanup

9 years agofix for building without audaspace
Campbell Barton [Thu, 24 May 2012 10:15:38 +0000 (10:15 +0000)]
fix for building without audaspace

9 years ago * removed clamp from color correction
Jeroen Bakker [Thu, 24 May 2012 06:16:05 +0000 (06:16 +0000)]
 * removed clamp from color correction

9 years agoCode Cleanup - DNA_space_types.h - Part 2 - Rearranging Stuff
Joshua Leung [Thu, 24 May 2012 04:46:01 +0000 (04:46 +0000)]
Code Cleanup - DNA_space_types.h - Part 2 - Rearranging Stuff

* Moved all enums to immediately follow the struct(s) that they are used for/by.
Less jumping around the file to find these

* Reshuffled the order of a few structs/editor groupings. For example, now all
animation editors are grouped together, and most general/property editors are
grouped together.

9 years agoCode Cleanup - DNA_space_types.h - Replaced all #define-lists with enums
Joshua Leung [Thu, 24 May 2012 04:21:57 +0000 (04:21 +0000)]
Code Cleanup  - DNA_space_types.h - Replaced all #define-lists with enums

* All lists of #defines now replaced with enums
* All flags are now defined using the "(1 << x)" style, which is easier to
read/maintain than the other variations

9 years agoRestoring Group Colours for Animation Channels - Part 1
Joshua Leung [Thu, 24 May 2012 01:25:31 +0000 (01:25 +0000)]
Restoring Group Colours for Animation Channels - Part 1

This commit restores the group colours support for F-Curves and F-Curve Groups
in the DopeSheet and Graph Editors. Currently the relevant settings for groups
are only exposed via RNA, but a followup commit will add support for
automatically setting these colours. By default, DopeSheet and Graph Editors are
set to display these colours if/when they are available.

This functionality used to be in 2.48, and is a useful mechanism for visually
distinguishing between channels for different controls when animating (if group
colours are used on the rigs too).

9 years agostyle cleanup: comma placement
Campbell Barton [Wed, 23 May 2012 22:45:39 +0000 (22:45 +0000)]
style cleanup: comma placement

9 years agocode cleanup: fix possible use of uninitialized value and remove dead initializations.
Campbell Barton [Wed, 23 May 2012 21:39:39 +0000 (21:39 +0000)]
code cleanup: fix possible use of uninitialized value and remove dead initializations.

9 years agoImage.gl_touch - routine to prevent the image to be cleared by blender cache garbage...
Dalai Felinto [Wed, 23 May 2012 20:19:40 +0000 (20:19 +0000)]
Image.gl_touch - routine to prevent the image to be cleared by blender cache garbage collection system
* if the image is not loaded (bindcode == 0) load the image

This needs to be called often. If the image is 'cleaned' by Blender, it will not help to load it after.
[ gl_load returns the errors: GL_STACK_OVERFLOW(1283) or GL_STACK_UNDERFLOW (1284) ]

Thanks Campbell for the suggestion on how to handle this (BKE_image_tag_time)

9 years agoFeature request implemented: [#31572] Mixdown selects blend filename, should initiali...
Joerg Mueller [Wed, 23 May 2012 19:55:00 +0000 (19:55 +0000)]
Feature request implemented: [#31572] Mixdown selects blend filename, should initialize name from filetype as images do.

9 years agoFix cycles render issue with a (useless) mix node that has the same shader
Brecht Van Lommel [Wed, 23 May 2012 17:55:34 +0000 (17:55 +0000)]
Fix cycles render issue with a (useless) mix node that has the same shader
plugged into both sockets.