Commit Graph

47594 Commits

Author SHA1 Message Date
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
Tamito Kajiyama
7afbdff1b6 Fix for a crash due to the changes in the trunk revision 50087 for thread safety in curve evaluation.
Problem report from Vicente Carro with an example .blend file for reproducing the issue.  Thanks!
2012-09-23 15:05:29 +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
Campbell Barton
552cd4b7e7 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.
2012-09-23 06:25:39 +00:00
Campbell Barton
3e9a09d385 fix for some crashes running operators in background mode. 2012-09-23 05:33:23 +00:00
Campbell Barton
3e6340214d fix for incorrect declaration rna_Object_free_duplilist() in cycles. 2012-09-23 05:02:06 +00:00
Campbell Barton
3b487a6944 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
2012-09-23 02:31:30 +00:00
Bastien Montagne
89d6cc7e23 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. :) 2012-09-22 20:07:30 +00:00
Bastien Montagne
e5d74d2247 Fix [#32629] Checking "Invert Zoom Direction" doesn't change zoom in camera view. 2012-09-22 17:45:52 +00:00
Bastien Montagne
fb8ffefd1d 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... ;)
2012-09-22 17:00:02 +00:00
Campbell Barton
6c1da4d022 code cleanup: make many functions static 2012-09-22 14:07:55 +00:00
Campbell Barton
34114b3b75 code cleanup: remove/comment unused defines 2012-09-22 13:40:31 +00:00
Campbell Barton
1541ee20c8 Improvement to own commit r50810.
Add an optional ghost argument to set the new mouse location when un-grabbing. - without this the mouse would flicker at the old location before moving to the new location - when using the color picker for eg.
2012-09-22 13:23:12 +00:00
Campbell Barton
9bb90f4d85 fix [#32609] RGB Curves Mouse Pointer Problem
this was working as intended but users complained that the mouse cursor stayed in the same location after using the color picker and curves with continuous grab enabled.
2012-09-22 12:25:54 +00:00
Campbell Barton
3ff23b753e rect/point clamping function: BLI_rct*_clamp_pt_v 2012-09-22 12:23:17 +00:00
Campbell Barton
76850d80b1 Enable predictable menu key-chaining as with r50501.
The way it works now, navigation keys (up/down, number, a-z) - won't apply to a submenu if there are no active buttons in that menu, instead the parent menu gets the event.
2012-09-22 07:38:16 +00:00
Campbell Barton
bb4537eb53 revert own commit r50501 (have a better way to implement this same feature) 2012-09-22 07:22:42 +00:00
Campbell Barton
b1ef5703d6 add a UV Project material option so UV's are calculated taking into account perspective matrix - previously this gave artifacts with lower poly meshes. 2012-09-22 04:57:55 +00:00
Campbell Barton
1a1e37f4a8 replace UV project modifier matrix calculation with BKE_camera_params_* functions, double checled combinations of aspect/scale/shift work as before --- but this reduces the likelyhood of discrepancies for sensor size (corner cases). 2012-09-22 03:33:31 +00:00
Campbell Barton
537c3375b5 fix for crash getting a member from the operator context override, in some cases python didnt hold the GIL. 2012-09-21 22:31:02 +00:00