Commit Graph

49420 Commits

Author SHA1 Message Date
Sergey Sharybin
a88bc390d0 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.
2012-09-26 10:39:32 +00:00
Joshua Leung
3a88eec176 Bugfix:
Timeline didn't update after deleting keyframes using Alt-I in the 3D View (i.e.
after ANIM_OT_keyframe_delete_v3d)
2012-09-26 09:27:47 +00:00
Sergey Sharybin
b2167e771a Fix #32663: Sculpt masks are too dark
Scaled mask multiplier to 0.25..1.0 instead of 0.0..1.0.
2012-09-26 07:55:52 +00:00
Campbell Barton
0060b9a8ef 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.
2012-09-26 07:37:12 +00:00
Campbell Barton
95002a98bf 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.
 bpy.data.objects[0:-2] != list(bpy.data.objects)[0:-2]
2012-09-25 23:41:32 +00:00
Campbell Barton
d08abbee69 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.
2012-09-25 23:28:15 +00:00
Campbell Barton
3b2962f2ab remove redundant NULL checks in somepledeform modifier (dcut is never NULL). 2012-09-25 22:05:40 +00:00
Alexander Pinzon
c0a7773ccf Boost directories were not properly configured to vc2010.
Opencolorio directories and openimageio not work as you would expect macro
2012-09-25 15:11:34 +00:00
Sergey Sharybin
80fed19ffc Fixed crash when selecting curve with a mouse
Was a missed check for DRAW_CONSTCOLOR flag.
2012-09-25 13:31:46 +00:00
Jeroen Bakker
b25cce1430 Compositor:
*  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.
2012-09-25 13:02:52 +00:00
Joshua Leung
7f6b4a28e8 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
unaffected.

I've noted this specific problem in the code as a warning.
2012-09-25 12:10:27 +00:00
Sergey Sharybin
456a78961c code cleanup: make naming more consistent 2012-09-25 10:21:51 +00:00
Sergey Sharybin
1f6f73e965 Color Management: mark some TODOs as resolved 2012-09-25 10:18:58 +00:00
Sergey Sharybin
d63f1cb5e4 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.
2012-09-25 10:14:07 +00:00
Sergey Sharybin
5f0ee9e9ed Remove access to deprecated per-strip color balance in RNA. 2012-09-25 09:40:04 +00:00
Sergey Sharybin
b5a92a0d87 Color Management: render result could have been incorrectly changed by file saving routines 2012-09-25 09:34:19 +00:00
Sergey Sharybin
90a5e8593c Color Management: float generated images had is_data flag set incorrect 2012-09-25 08:42:24 +00:00
Sergey Sharybin
3cf59bce78 No need to show display settings in file output node 2012-09-25 08:02:05 +00:00
Bastien Montagne
e4ea07c709 Fix own error (wrong portuguese-brazilian Windows "long_locale" - yuck!), and some minor, non-code edits. 2012-09-25 06:11:32 +00:00
Dalai Felinto
f2064367a3 fix for gibberish text in 2DFilter actuator when text unlinked through the Text Editor
(reported nowhere, I found this while testing osl custom node)
2012-09-25 05:48:33 +00:00
Campbell Barton
7fdfd26f21 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).
2012-09-25 04:15:09 +00:00
Campbell Barton
c1ed602060 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). 2012-09-25 03:00:33 +00:00
Campbell Barton
f67de7d805 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
2012-09-25 01:21:21 +00:00
Campbell Barton
9d0875828e small improvement to previous commit, use pre-calculated ngon normal to avoid calculating twice when dupli-scale is enabled. 2012-09-25 00:25:17 +00:00
Campbell Barton
b0bf816ece 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.
2012-09-25 00:20:42 +00:00
Campbell Barton
687cacfdd0 rename RNA duration --> frame_duration to match sequence strip. 2012-09-24 22:41:10 +00:00
Campbell Barton
f2763492cf code cleanup: add missing includes to RNA (this one is safe!) 2012-09-24 22:39:45 +00:00
Jens Verwiebe
33d7a1bbeb OSX/osl: add install of shader headers needed for osl_nodes compile 2012-09-24 19:25:32 +00:00
Sergey Sharybin
17dc6e7c04 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.
2012-09-24 18:22:33 +00:00
Sergey Sharybin
e0fe0fa7dd 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.
2012-09-24 17:57:09 +00:00
Sergey Sharybin
bf41aa0168 - Corrected movie clip length computation
- Ignore clip's offset for movie clip sequencer strip
2012-09-24 15:27:04 +00:00
Sergey Sharybin
81dc928e50 Sequencer: movie clip float buffers should be converted to internal sequencer space 2012-09-24 15:26:59 +00:00
Sergey Sharybin
9cb33ec68f Expose movie clip duration property to RNA 2012-09-24 15:26:54 +00:00
Sergey Sharybin
b4ccf4562c Fix crash on sequencer when movie clip fails to load frame 2012-09-24 14:48:24 +00:00
Brecht Van Lommel
0c288b25c7 Fix image editor switching to no image when deselecting all faces for UV editing,
it should just keep the last image in that case.
2012-09-24 14:36:25 +00:00
Sergey Sharybin
2953b6ab5c 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.
2012-09-24 13:48:37 +00:00
Sergey Sharybin
c12d16cf4b 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.
2012-09-24 13:02:08 +00:00
Sergey Sharybin
cd95229a17 No need to limit image frame offset to blender's frame range 2012-09-24 12:15:49 +00:00
Sergey Sharybin
9e3e12fa4e 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.
2012-09-24 11:56:07 +00:00
Campbell Barton
5a5b37a4fa deleting mask data wasn't deleting loop data. also return OPERATOR_CANCELLED when nothing was done. 2012-09-24 10:57:44 +00:00
Campbell Barton
953e2321dd fix for memory leak grabbing masks and grease pencil in the dope sheet. (also NULL after freeing) 2012-09-24 01:50:26 +00:00
Campbell Barton
e6e5e92869 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. 2012-09-24 01:36:31 +00:00
Campbell Barton
904515814f 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.
2012-09-24 01:13:13 +00:00
Campbell Barton
b859d12340 inserting mask keyframes wasn't redrawing with the dope sheet 2012-09-24 00:37:14 +00:00
Campbell Barton
fc3e0ae297 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) 2012-09-24 00:07:14 +00:00
Campbell Barton
701e57e11d 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).
2012-09-24 00:05:02 +00:00
Campbell Barton
2a0649d61d fix [#32635] no viewport update when link and object to a scene
also comment unused static RNA functions.
2012-09-23 23:44:10 +00:00
Campbell Barton
fdf55bcf66 fix for crash joining objects with shape keys - own mistake when fixing another bug. 2012-09-23 23:30:01 +00:00
Tamito Kajiyama
a42ba82f63 Merged changes in the trunk up to revision 50829.
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/render/intern/source/convertblender.c
source/blender/render/intern/source/pipeline.c

Also addressed code inconsistency due to changes in the trunk revision 50628 (color
management with OCIO) and 50806 (UV project material).  OCIO-related changes are marked
OCIO_TODO as in some other files modified in revision 50628.
2012-09-23 18:50:56 +00:00
Konrad Kleine
60a5e05a4d 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.
2012-09-23 17:50:51 +00:00