7 years agoFix #32667: Curve softbodies doesn't render animation (cycles)
Sergey Sharybin [Thu, 27 Sep 2012 14:37:20 +0000 (14:37 +0000)]
Fix #32667: Curve softbodies doesn't render animation (cycles)

Issue was caused by cycles being duplicated curve objects before converting
them to mesh. This duplication will loose pointcache which resulted in object
not being properly deformed.

7 years agoColor Management: move "Color Unpremultiply" option to Color Management panel
Brecht Van Lommel [Thu, 27 Sep 2012 12:44:52 +0000 (12:44 +0000)]
Color Management: move "Color Unpremultiply" option to Color Management panel
from the Shading panel, since it's about color space conversion for renders.

7 years agofix [#32616] Changing parent does not keep transformation
Campbell Barton [Thu, 27 Sep 2012 12:24:38 +0000 (12:24 +0000)]
fix [#32616] Changing parent does not keep transformation

add an option to apply the transform of an object when re-parenting.

the reason for this is you dont always want to apply transform because...
- your object may be driven/animated and the transformation will be lost.
- with negative scales and rotation it can end up giving odd/not-useful results.

7 years agofix for adding triangle-fan filled circle not tagging the center vertex.
Campbell Barton [Thu, 27 Sep 2012 03:32:13 +0000 (03:32 +0000)]
fix for adding triangle-fan filled circle not tagging the center vertex.

7 years agofix [#32672] Crash when rendering environment map
Campbell Barton [Thu, 27 Sep 2012 02:56:46 +0000 (02:56 +0000)]
fix [#32672] Crash when rendering environment map
own regression since 2.63

7 years agowm_event_do_handlers was calling sound_sync_scene() twice without error checking...
Campbell Barton [Thu, 27 Sep 2012 02:18:14 +0000 (02:18 +0000)]
wm_event_do_handlers was calling sound_sync_scene() twice without error checking the result of the second call.

7 years agodon't draw the object center circle when in sculpt mode (all other paint modes have...
Campbell Barton [Wed, 26 Sep 2012 22:39:10 +0000 (22:39 +0000)]
don't draw the object center circle when in sculpt mode (all other paint modes have it disabled).

7 years agominor change for sculpt undo, was getting the derived-mesh before calling sculpt_upda...
Campbell Barton [Wed, 26 Sep 2012 22:09:56 +0000 (22:09 +0000)]
minor change for sculpt undo, was getting the derived-mesh before calling sculpt_update_mesh_elements().
also add NULL check for BKE_key_from_object(), to avoid unlikely but possible NULL pointer dereference.

7 years agopep8 cleanup
Campbell Barton [Wed, 26 Sep 2012 21:19:51 +0000 (21:19 +0000)]
pep8 cleanup

7 years agostyle cleanup: also correct incorrect doxy heading
Campbell Barton [Wed, 26 Sep 2012 20:26:31 +0000 (20:26 +0000)]
style cleanup: also correct incorrect doxy heading

7 years agocorrect debug/test assignment being left in the UI_view2d_smooth_view() so it always...
Campbell Barton [Wed, 26 Sep 2012 20:14:30 +0000 (20:14 +0000)]
correct debug/test assignment being left in the UI_view2d_smooth_view() so it always recalculated.

7 years agoincorrect spelling in comments
Campbell Barton [Wed, 26 Sep 2012 20:05:38 +0000 (20:05 +0000)]
incorrect spelling in comments

7 years agofix for cycles/python script error in normal panel
Campbell Barton [Wed, 26 Sep 2012 19:23:06 +0000 (19:23 +0000)]
fix for cycles/python script error in normal panel

7 years agoFixed typo in previous commit!
Sergey Sharybin [Wed, 26 Sep 2012 13:22:30 +0000 (13:22 +0000)]
Fixed typo in previous commit!

7 years agoColor Management: restore abort() in cases of error and WITH_ASSERT_ABORT enabled
Sergey Sharybin [Wed, 26 Sep 2012 13:21:10 +0000 (13:21 +0000)]
Color Management: restore abort() in cases of error and WITH_ASSERT_ABORT enabled

7 years agoColor Management: resolve warnings when OCIO configuration file misses None display
Sergey Sharybin [Wed, 26 Sep 2012 13:17:47 +0000 (13:17 +0000)]
Color Management: resolve warnings when OCIO configuration file misses None display

7 years agoRemove unneeded null-check: display settings should always be valid after IMB_colorma...
Sergey Sharybin [Wed, 26 Sep 2012 12:30:46 +0000 (12:30 +0000)]
Remove unneeded null-check: display settings should always be valid after IMB_colormanagement_check_file_config

7 years agofix for eternal loop in recursive_operation()
Campbell Barton [Wed, 26 Sep 2012 12:22:50 +0000 (12:22 +0000)]
fix for eternal loop in recursive_operation()

7 years agoFix #32666: Memory Cache Limit stops working after set to 2048
Sergey Sharybin [Wed, 26 Sep 2012 11:16:27 +0000 (11:16 +0000)]
Fix #32666: Memory Cache Limit stops working after set to 2048

Solved two issues here:

- RNA update function for cache limiter wasn't type-casting to size_t
  type, which lead to long int overflow.

- Display buffer size in color management wasn't calculated properly,
  ended up with much more extra memory usage than it's needed.

7 years agofix [#32665] Inconsistent Circle Mesh Edge Subdivision
Campbell Barton [Wed, 26 Sep 2012 11:14:40 +0000 (11:14 +0000)]
fix [#32665] Inconsistent Circle Mesh Edge Subdivision

7 years agoFix #32091: Crop and offset coordinates changes proxy render settings on image strips
Sergey Sharybin [Wed, 26 Sep 2012 10:39:36 +0000 (10:39 +0000)]
Fix #32091: Crop and offset coordinates changes proxy render settings on image strips

Made offset and crop working in final resolution space, meaning that visual result
would be the same when using different proxy resolution in sequencer preview and
different resolution percentage when rendering.

It could break some files designed to with render percentage not equal to 100%
using wrong image crop and offset values. But this would also make it easier to
setup scene and render it with different percentage (useful for preview renders
for example)

7 years agoCorrection to svn rev50845
Sergey Sharybin [Wed, 26 Sep 2012 10:39:32 +0000 (10:39 +0000)]
Correction to svn rev50845

Disable color picker button only if color block is invoked from another popup.

Only in this case color picking will fail. Valid RNA path isn't required for
this, only RNA pointer in button is needed.

This solves issue with missing color picking in user preferences.

7 years agoBugfix:
Joshua Leung [Wed, 26 Sep 2012 09:27:47 +0000 (09:27 +0000)]

Timeline didn't update after deleting keyframes using Alt-I in the 3D View (i.e.
after ANIM_OT_keyframe_delete_v3d)

7 years agoFix #32663: Sculpt masks are too dark
Sergey Sharybin [Wed, 26 Sep 2012 07:55:52 +0000 (07:55 +0000)]
Fix #32663: Sculpt masks are too dark

Scaled mask multiplier to 0.25..1.0 instead of 0.0..1.0.

7 years agofix [#32661] Grease Pencil in Camera View
Campbell Barton [Wed, 26 Sep 2012 07:37:12 +0000 (07:37 +0000)]
fix [#32661] Grease Pencil in Camera View

Regression since 2.63a release.

own fault in r49996, though code was confusing - using rcti struct for offset+width.

7 years agofix for very bad bug with python list slicing which - in bmesh and bpy api for all...
Campbell Barton [Tue, 25 Sep 2012 23:41:32 +0000 (23:41 +0000)]
fix for very bad bug with python list slicing which - in bmesh and bpy api for all? 2.5x + releases.

negative stop values when slicing was broken. eg.[0:-2] != list([0:-2]

7 years agoadd back game engine python api slicing, (was missing / regression, since move to...
Campbell Barton [Tue, 25 Sep 2012 23:28:15 +0000 (23:28 +0000)]
add back game engine python api slicing, (was missing / regression, since move to py3x)

not many people must have used it since it would crash with non-zero start slice values.

7 years agoremove redundant NULL checks in somepledeform modifier (dcut is never NULL).
Campbell Barton [Tue, 25 Sep 2012 22:05:40 +0000 (22:05 +0000)]
remove redundant NULL checks in somepledeform modifier (dcut is never NULL).

7 years agofix osx/ols compile after #50876
Jens Verwiebe [Tue, 25 Sep 2012 18:30:37 +0000 (18:30 +0000)]
fix osx/ols compile after #50876

7 years agoUnification of names for the BOOST library directory in Windows 32 and win64
Alexander Pinzon [Tue, 25 Sep 2012 15:27:11 +0000 (15:27 +0000)]
Unification of names for the BOOST library directory in Windows 32 and win64

7 years agoFix for last color management commit, wrongly assumed aces_to_rec709.spimtx was in...
Brecht Van Lommel [Tue, 25 Sep 2012 15:24:06 +0000 (15:24 +0000)]
Fix for last color management commit, wrongly assumed aces_to_rec709.spimtx was in svn.

7 years agoBoost directories were not properly configured to vc2010.
Alexander Pinzon [Tue, 25 Sep 2012 15:11:34 +0000 (15:11 +0000)]
Boost directories were not properly configured to vc2010.
Opencolorio directories and openimageio not work as you would expect macro

7 years agoFixed crash when selecting curve with a mouse
Sergey Sharybin [Tue, 25 Sep 2012 13:31:46 +0000 (13:31 +0000)]
Fixed crash when selecting curve with a mouse

Was a missed check for DRAW_CONSTCOLOR flag.

7 years agoCompositor:
Jeroen Bakker [Tue, 25 Sep 2012 13:02:52 +0000 (13:02 +0000)]
*  Node muting in node groups didn't work.

[#32597] Mute one node in a group blocks it

It looked for connections in the main tree, and not inside the group.

7 years agoColor management: change reference space from Linear ACES to Linear. This will
Brecht Van Lommel [Tue, 25 Sep 2012 12:43:50 +0000 (12:43 +0000)]
Color management: change reference space from Linear ACES to Linear. This will
have no effect on the end result, because it is only an intermediate space and
scene_linear was already set to Linear. It does avoid some unnecessary matrix
transforms which should be a bit faster, and it makes it more clear what's

7 years agoBugfix [#32647] PolyLine tool for Grease Pencil was broken
Joshua Leung [Tue, 25 Sep 2012 12:10:27 +0000 (12:10 +0000)]
Bugfix [#32647] PolyLine tool for Grease Pencil was broken

This was broken in r.46589, although it doesn't seem that these changes have any
relevance to the main fix being performed there.

The problem was that the offending changes made the Grease Pencil modal handler
exit when an RMB event occurs meant that the operator was exiting after the
initial click, meaning that it was only possible to draw single dots at a time
when using the hotkey version of PolyLine. The toolbox version however was

I've noted this specific problem in the code as a warning.

7 years agocode cleanup: make naming more consistent
Sergey Sharybin [Tue, 25 Sep 2012 10:21:51 +0000 (10:21 +0000)]
code cleanup: make naming more consistent

7 years agoColor Management: mark some TODOs as resolved
Sergey Sharybin [Tue, 25 Sep 2012 10:18:58 +0000 (10:18 +0000)]
Color Management: mark some TODOs as resolved

7 years agoExpose image's and clip's input color space settings to properties panel in compositor,
Sergey Sharybin [Tue, 25 Sep 2012 10:14:07 +0000 (10:14 +0000)]
Expose image's and clip's input color space settings to properties panel in compositor,
so now input color space could be changed directly from the compositor.

The only unfinished thing is missed compositor update when color space is
changing. Not sure about correct fix for this yet.

7 years agoRemove access to deprecated per-strip color balance in RNA.
Sergey Sharybin [Tue, 25 Sep 2012 09:40:04 +0000 (09:40 +0000)]
Remove access to deprecated per-strip color balance in RNA.

7 years agoColor Management: render result could have been incorrectly changed by file saving...
Sergey Sharybin [Tue, 25 Sep 2012 09:34:19 +0000 (09:34 +0000)]
Color Management: render result could have been incorrectly changed by file saving routines

7 years agoColor Management: wrong register was used for color space for None display
Sergey Sharybin [Tue, 25 Sep 2012 09:03:11 +0000 (09:03 +0000)]
Color Management: wrong register was used for color space for None display

7 years agoColor Management: float generated images had is_data flag set incorrect
Sergey Sharybin [Tue, 25 Sep 2012 08:42:24 +0000 (08:42 +0000)]
Color Management: float generated images had is_data flag set incorrect

7 years agoNo need to show display settings in file output node
Sergey Sharybin [Tue, 25 Sep 2012 08:02:05 +0000 (08:02 +0000)]
No need to show display settings in file output node

7 years agoUse ${OPENEXR_INCLUDE_DIR} instead of ${OPENEXR}/include
Sergey Sharybin [Tue, 25 Sep 2012 07:34:45 +0000 (07:34 +0000)]
Use ${OPENEXR_INCLUDE_DIR} instead of ${OPENEXR}/include

There's no CMake symbol names ${OPENEXR} which lead to using /include
as an include directory, which isn't correct.

7 years agoFix own error (wrong portuguese-brazilian Windows "long_locale" - yuck!), and some...
Bastien Montagne [Tue, 25 Sep 2012 06:11:32 +0000 (06:11 +0000)]
Fix own error (wrong portuguese-brazilian Windows "long_locale" - yuck!), and some minor, non-code edits.

7 years agofix for gibberish text in 2DFilter actuator when text unlinked through the Text Editor
Dalai Felinto [Tue, 25 Sep 2012 05:48:33 +0000 (05:48 +0000)]
fix for gibberish text in 2DFilter actuator when text unlinked through the Text Editor
(reported nowhere, I found this while testing osl custom node)

7 years agofix [#31703] modules/ BoolVectorProperty and CollectionProperty
Campbell Barton [Tue, 25 Sep 2012 05:17:23 +0000 (05:17 +0000)]
fix [#31703] modules/ BoolVectorProperty and CollectionProperty

patch provided by reporter (n floyd)

7 years agofix for error disabling group visibility (which was flushed down to obects),
Campbell Barton [Tue, 25 Sep 2012 04:15:09 +0000 (04:15 +0000)]
fix for error disabling group visibility (which was flushed down to obects),
    - objects were being selected rather then de-selected.
    - object restrict selection wasnt de-selecting either (as it does when changing the object in the outliner directly).

7 years agodefault simple deforms `Relative` option to be enabled, IMHO this shouldn't be an...
Campbell Barton [Tue, 25 Sep 2012 03:00:33 +0000 (03:00 +0000)]
default simple deforms `Relative` option to be enabled, IMHO this shouldn't be an option (objects should always work relative to eachother). At least defaulting to ON gives users more predictable behavior (Transforming both objects together keeps them the same relative to eachother).

7 years agofix for regression in solidify modifier copying loop customdata to rim faces (UV...
Campbell Barton [Tue, 25 Sep 2012 01:21:21 +0000 (01:21 +0000)]
fix for regression in solidify modifier copying loop customdata to rim faces (UV's and vertex colors).

Own fault when fixing rim face flipping r46924

7 years agosmall improvement to previous commit, use pre-calculated ngon normal to avoid calcula...
Campbell Barton [Tue, 25 Sep 2012 00:25:17 +0000 (00:25 +0000)]
small improvement to previous commit, use pre-calculated ngon normal to avoid calculating twice when dupli-scale is enabled.

7 years agofix [#32646] Duplifaces can have wrong orientation with ngons
Campbell Barton [Tue, 25 Sep 2012 00:20:42 +0000 (00:20 +0000)]
fix [#32646] Duplifaces can have wrong orientation with ngons

concave ngons could flip the dupliface, now use the faces normal when calculating the dupli-face.

7 years agorename RNA duration --> frame_duration to match sequence strip.
Campbell Barton [Mon, 24 Sep 2012 22:41:10 +0000 (22:41 +0000)]
rename RNA duration --> frame_duration to match sequence strip.

7 years agocode cleanup: add missing includes to RNA (this one is safe!)
Campbell Barton [Mon, 24 Sep 2012 22:39:45 +0000 (22:39 +0000)]
code cleanup: add missing includes to RNA (this one is safe!)

7 years agofix cmake in case the boostlibs don't contain boost_python3 refactor ( was possibly...
Jens Verwiebe [Mon, 24 Sep 2012 20:37:18 +0000 (20:37 +0000)]
fix cmake in case the boostlibs don't contain boost_python3 refactor ( was possibly not correct)

7 years agofix cmake in case the boostlibs don't contain boost_python3 yet
Jens Verwiebe [Mon, 24 Sep 2012 19:53:33 +0000 (19:53 +0000)]
fix cmake in case the boostlibs don't contain boost_python3 yet

7 years agoOSX/osl: add install of shader headers needed for osl_nodes compile
Jens Verwiebe [Mon, 24 Sep 2012 19:25:32 +0000 (19:25 +0000)]
OSX/osl: add install of shader headers needed for osl_nodes compile

7 years agoOSL/cmake: the non-intrusive parts, so other os-maintainers can take code over
Jens Verwiebe [Mon, 24 Sep 2012 19:06:28 +0000 (19:06 +0000)]
OSL/cmake: the non-intrusive parts, so other os-maintainers can take code over

7 years agoSome further fixes for #32626: TIFF renders are limited to 8 bit even when we choose 16.
Sergey Sharybin [Mon, 24 Sep 2012 18:22:33 +0000 (18:22 +0000)]
Some further fixes for #32626: TIFF renders are limited to 8 bit even when we choose 16.

File type was checking for wrong flags, now it should be checked against
actual file format flags which would be used on save.

We also can not free float buffer if file format doesn't have IM_FTYPE_FLOAT
flag -- i.e. TIFF doesn't have such flag and it decides whether float or
byte buffer should be used based on image depth.

7 years agoUpdate startup.blend to store proper default theme
Sergey Sharybin [Mon, 24 Sep 2012 17:57:14 +0000 (17:57 +0000)]
Update startup.blend to store proper default theme

(there were several differences on color theme stored in startup.blend
and colors after restoring them by Reset to Default Theme button).

Should be no other changes.

7 years agoThemes fixes:
Sergey Sharybin [Mon, 24 Sep 2012 17:57:09 +0000 (17:57 +0000)]
Themes fixes:

- Added initialization of frame node color to default theme loading
  Used default color from 2.63a theme, should be pretty fine as default.

- Added some missing versioning checks which lead to differences between
  startup.blend and default theme restored.

7 years ago- Corrected movie clip length computation
Sergey Sharybin [Mon, 24 Sep 2012 15:27:04 +0000 (15:27 +0000)]
- Corrected movie clip length computation
- Ignore clip's offset for movie clip sequencer strip

7 years agoSequencer: movie clip float buffers should be converted to internal sequencer space
Sergey Sharybin [Mon, 24 Sep 2012 15:26:59 +0000 (15:26 +0000)]
Sequencer: movie clip float buffers should be converted to internal sequencer space

7 years agoExpose movie clip duration property to RNA
Sergey Sharybin [Mon, 24 Sep 2012 15:26:54 +0000 (15:26 +0000)]
Expose movie clip duration property to RNA

7 years agoFix crash on sequencer when movie clip fails to load frame
Sergey Sharybin [Mon, 24 Sep 2012 14:48:24 +0000 (14:48 +0000)]
Fix crash on sequencer when movie clip fails to load frame

7 years agoFix image editor switching to no image when deselecting all faces for UV editing,
Brecht Van Lommel [Mon, 24 Sep 2012 14:36:25 +0000 (14:36 +0000)]
Fix image editor switching to no image when deselecting all faces for UV editing,
it should just keep the last image in that case.

7 years agoFix #32638: mesh double sided normals option not available in any Cycles panel.
Brecht Van Lommel [Mon, 24 Sep 2012 14:36:20 +0000 (14:36 +0000)]
Fix #32638: mesh double sided normals option not available in any Cycles panel.

7 years agoFix #32644: ctrl+F11 internal animation player crash
Sergey Sharybin [Mon, 24 Sep 2012 13:48:37 +0000 (13:48 +0000)]
Fix #32644: ctrl+F11 internal animation player crash

Crash was caused by missed color management initialization -- it was
happening too late.

Move it to generic ImBuf init/exit functions, so now color management
is properly initializing when animation player is launched.

7 years agoFix #32396: EyeDropper does nothing on "New" in Uv image editor
Sergey Sharybin [Mon, 24 Sep 2012 13:02:08 +0000 (13:02 +0000)]
Fix #32396: EyeDropper does nothing on "New" in Uv image editor

For now simply hide color picker button for properties which doesn't
have RNA path. Trying to make color picker working would end up with
design limitations like not bale to run two operators the same time.

Used RNA_property_path_from_ID_check for check which is marked as
slow and need to be used with care. Since this function is only called
from a popup, shouldn't be a big problem.

7 years agoNo need to limit image frame offset to blender's frame range
Sergey Sharybin [Mon, 24 Sep 2012 12:15:49 +0000 (12:15 +0000)]
No need to limit image frame offset to blender's frame range

7 years agoProper fix for #32626: TIFF renders are limited to 8 bit even when we choose 16.
Sergey Sharybin [Mon, 24 Sep 2012 11:56:07 +0000 (11:56 +0000)]
Proper fix for #32626: TIFF renders are limited to 8 bit even when we choose 16.

Color management would be applied on both of float and byte buffers on image
save in cases if file format doesn't require linear float buffer and if image
is saving as render result.

This solves both initial report issue and TODO marked in previous fix.

Also de-duplicated image buffer color managing code and gave some more
meaningful names for few functions. Also wrote documentation around this
function, so current assumptions about spaces should be clear enough.

Made regression tests by saving EXR/PNG images to all supported format and
rendering OpenGL/Normal animation, in all cases seems everything is fine,
but more tests for sure would be welcome.

7 years agodeleting mask data wasn't deleting loop data. also return OPERATOR_CANCELLED when...
Campbell Barton [Mon, 24 Sep 2012 10:57:44 +0000 (10:57 +0000)]
deleting mask data wasn't deleting loop data. also return OPERATOR_CANCELLED when nothing was done.

7 years agofix for memory leak grabbing masks and grease pencil in the dope sheet. (also NULL...
Campbell Barton [Mon, 24 Sep 2012 01:50:26 +0000 (01:50 +0000)]
fix for memory leak grabbing masks and grease pencil in the dope sheet. (also NULL after freeing)

7 years agorevert r50837, this assumption is made elsewhere (in transform_conversions.c), so...
Campbell Barton [Mon, 24 Sep 2012 01:36:31 +0000 (01:36 +0000)]
revert r50837, this assumption is made elsewhere (in transform_conversions.c), so better leave it for now, at least with r50836 mask datablocks display in the dope sheet by default now.

7 years agofix [#32626] TIFF renders are limited to 8 bit even when we choose 16.
Campbell Barton [Mon, 24 Sep 2012 01:13:13 +0000 (01:13 +0000)]
fix [#32626] TIFF renders are limited to 8 bit even when we choose 16.
this is a regression with color management, TIFF's were always being written as 8bit

however the float buffer is assumed to be linear when converting from float to 16bit pixels per channel, so support for color management might need to be added here.

7 years agoinserting mask keyframes wasn't redrawing with the dope sheet
Campbell Barton [Mon, 24 Sep 2012 00:37:14 +0000 (00:37 +0000)]
inserting mask keyframes wasn't redrawing with the dope sheet

7 years agodon't check the real usercount when drawing masks, this way fake user masks can be...
Campbell Barton [Mon, 24 Sep 2012 00:07:14 +0000 (00:07 +0000)]
don't check the real usercount when drawing masks, this way fake user masks can be edited in the dope sheet. (was cause of masks mysteriously not showing in the dope sheet, making masks fake user by default made this more common an issue)

7 years agofix for issue where you could easily make zero user datablocks (especially with masks...
Campbell Barton [Mon, 24 Sep 2012 00:05:02 +0000 (00:05 +0000)]
fix for issue where you could easily make zero user datablocks (especially with masks which default to fake user).

- Make mask
- assign to image editor
- disable fake user

This would make the image space reference a zero user mask datablock which wouldn't be saved.

solve the bug by making mask and image assignments check the real usercount of the ID block (not taking into account fake user).

7 years agofix [#32635] no viewport update when link and object to a scene
Campbell Barton [Sun, 23 Sep 2012 23:44:10 +0000 (23:44 +0000)]
fix [#32635] no viewport update when link and object to a scene

also comment unused static RNA functions.

7 years agofix for crash joining objects with shape keys - own mistake when fixing another bug.
Campbell Barton [Sun, 23 Sep 2012 23:30:01 +0000 (23:30 +0000)]
fix for crash joining objects with shape keys - own mistake when fixing another bug.

7 years agominor update to panel templates/examples - the panel examples didnt show an operator...
Campbell Barton [Sun, 23 Sep 2012 23:11:24 +0000 (23:11 +0000)]
minor update to panel templates/examples - the panel examples didnt show an operator and use `scene` rather then `sc` for the active scene name.

7 years agoFix #32625 Zero area-sized faces caused jittered part. distrib. to crash
Konrad Kleine [Sun, 23 Sep 2012 17:50:51 +0000 (17:50 +0000)]
Fix #32625 Zero area-sized faces caused jittered part. distrib. to crash

When appling a particle system to a face whose area size is zero,
the jitter distribution failed. fmod() produces a NaN value in this
case. This commit simply checks if the jitter offset (I guess that is
"jitoff" means) and only call psys_uv_to_w() if it's a real floating
point number.

7 years agoFix #32628: Crash when selecting Channels of the image to draw icon - Compositor
Sergey Sharybin [Sun, 23 Sep 2012 14:47:48 +0000 (14:47 +0000)]
Fix #32628: Crash when selecting Channels of the image to draw icon - Compositor

Own regressions since color management merge commit.

7 years agoA bit alternative fix for bug mentioned in rev50826
Sergey Sharybin [Sun, 23 Sep 2012 14:41:03 +0000 (14:41 +0000)]
A bit alternative fix for bug mentioned in rev50826

We need to assign color space for generated images when it's empty.
Do this in add_ibuf_size function in cases image's color space is

So now color management is always called with correct color space.

P.S. At least it should. If there're more similar issues please
     let me know :)

7 years agoFix #32522: Object's diffuse color not showing in Sculpt Mode
Sergey Sharybin [Sun, 23 Sep 2012 14:16:52 +0000 (14:16 +0000)]
Fix #32522: Object's diffuse color not showing in Sculpt Mode

It was missing since sculpting mask implementation.

Now object's color would be multiplied by sculpt mask value.

For VBOs it's done by storing final color in VertexBufferFormat and
mimic behavior of setMaterial callback for getting current diffuse

For non-VBOs diffuse color is getting from current OpenGL context.

7 years agofix for crash loading old files without colormanagement.
Campbell Barton [Sun, 23 Sep 2012 10:30:39 +0000 (10:30 +0000)]
fix for crash loading old files without colormanagement.

7 years agoremove sticky customdata layers as well as sticky mtex flag
Campbell Barton [Sun, 23 Sep 2012 10:25:22 +0000 (10:25 +0000)]
remove sticky customdata layers as well as sticky mtex flag

7 years agoadd more tests to run operators testing script
Campbell Barton [Sun, 23 Sep 2012 09:37:47 +0000 (09:37 +0000)]
add more tests to run operators testing script

7 years agofix for crashes caused by mixups when adding objects when incompatible object types...
Campbell Barton [Sun, 23 Sep 2012 07:18:50 +0000 (07:18 +0000)]
fix for crashes caused by mixups when adding objects when incompatible object types were already in editmode.

7 years agofix for crash backing in background mode.
Campbell Barton [Sun, 23 Sep 2012 06:38:09 +0000 (06:38 +0000)]
fix for crash backing in background mode.

7 years agofix for crash executing a python script.
Campbell Barton [Sun, 23 Sep 2012 06:25:39 +0000 (06:25 +0000)]
fix for crash executing a python script.
nice obscure case, when a script executes, frees its self (by loading a file for eg), then has a python error.

... in this case blender would fetch the python exception and attempt to move the cursor in the freed textblock to the error line, crashing blender.

7 years agofix for some crashes running operators in background mode.
Campbell Barton [Sun, 23 Sep 2012 05:33:23 +0000 (05:33 +0000)]
fix for some crashes running operators in background mode.

7 years agofix for incorrect declaration rna_Object_free_duplilist() in cycles.
Campbell Barton [Sun, 23 Sep 2012 05:02:06 +0000 (05:02 +0000)]
fix for incorrect declaration rna_Object_free_duplilist() in cycles.

7 years agofix for all pose-group editing functions crashing when the context didnt have an...
Campbell Barton [Sun, 23 Sep 2012 02:31:30 +0000 (02:31 +0000)]
fix for all pose-group editing functions crashing when the context didnt have an area (in background mode),
fix pose-group-sort and pose-group-moving being disabled for pinned poses.

also fix for own missing NULL check for pose mask clear which would crash when run without an active object

7 years agoMake "name" member of RNA KeymapItem struct return the translated name of the underly...
Bastien Montagne [Sat, 22 Sep 2012 20:07:30 +0000 (20:07 +0000)]
Make "name" member of RNA KeymapItem struct return the translated name of the underlying operator. Else, op names are usually not translated in keymap part of the user preferences! Thx to Miklós Pomsár for pointing this bug. :)

7 years agoFix [#32629] Checking "Invert Zoom Direction" doesn't change zoom in camera view.
Bastien Montagne [Sat, 22 Sep 2012 17:45:52 +0000 (17:45 +0000)]
Fix [#32629] Checking "Invert Zoom Direction" doesn't change zoom in camera view.

7 years agoMore tweaks to sequencer Header bar: make overlay also available in mix mode, and...
Bastien Montagne [Sat, 22 Sep 2012 17:40:08 +0000 (17:40 +0000)]
More tweaks to sequencer Header bar: make overlay also available in mix mode, and OpenGL render buttons in all modes!

7 years agoRevert a small part of r50813, so that we can build (actually, link) with Cycles!
Bastien Montagne [Sat, 22 Sep 2012 17:00:02 +0000 (17:00 +0000)]
Revert a small part of r50813, so that we can build (actually, link) with Cycles!

Note: this is marked as hack/todo in cycles code, so it needs a proper fix, but at least it works, for now... ;)

7 years agocode cleanup: make many functions static
Campbell Barton [Sat, 22 Sep 2012 14:07:55 +0000 (14:07 +0000)]
code cleanup: make many functions static