Commit Graph

41320 Commits

Author SHA1 Message Date
Sergey Sharybin
0b155618a4 Color Management: wrong register was used for color space for None display 2012-09-25 09:03:11 +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
Sergey Sharybin
f45f229af2 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.
2012-09-25 07:34:45 +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
b3fd195665 fix [#31703] modules/rna_xml.py: BoolVectorProperty and CollectionProperty
patch provided by reporter (n floyd)
2012-09-25 05:17:23 +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
3d6e2c2af6 fix cmake in case the boostlibs don't contain boost_python3 refactor ( was possibly not correct) 2012-09-24 20:37:18 +00:00
Jens Verwiebe
71a3339032 fix cmake in case the boostlibs don't contain boost_python3 yet 2012-09-24 19:53:33 +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
Jens Verwiebe
87a8aea313 OSL/cmake: the non-intrusive parts, so other os-maintainers can take code over 2012-09-24 19:06:28 +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
765865c3b1 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.
2012-09-24 17:57:14 +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
Brecht Van Lommel
ae7c3eaceb Fix #32638: mesh double sided normals option not available in any Cycles panel. 2012-09-24 14:36:20 +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
Campbell Barton
e038d7212a minor update to panel templates/examples - the panel examples didnt show an operator and use scene rather then sc for the active scene name. 2012-09-23 23:11:24 +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
Sergey Sharybin
edd11c0829 Fix #32628: Crash when selecting Channels of the image to draw icon - Compositor
Own regressions since color management merge commit.
2012-09-23 14:47:48 +00:00
Sergey Sharybin
a1e24889ba 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
empty.

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 :)
2012-09-23 14:41:03 +00:00
Sergey Sharybin
2637efa2a3 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
color.

For non-VBOs diffuse color is getting from current OpenGL context.
2012-09-23 14:16:52 +00:00
Campbell Barton
fa2daf0dbd fix for crash loading old files without colormanagement. 2012-09-23 10:30:39 +00:00
Campbell Barton
acb4a03934 remove sticky customdata layers as well as sticky mtex flag 2012-09-23 10:25:22 +00:00
Campbell Barton
2152b6fa41 add more tests to run operators testing script 2012-09-23 09:37:47 +00:00
Campbell Barton
c574419049 fix for crashes caused by mixups when adding objects when incompatible object types were already in editmode. 2012-09-23 07:18:50 +00:00
Campbell Barton
7d1a36f8f4 fix for crash backing in background mode. 2012-09-23 06:38:09 +00:00