Commit Graph

31929 Commits

Author SHA1 Message Date
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
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
bf41aa0168 - Corrected movie clip length computation
- Ignore clip's offset for movie clip sequencer strip
2012-09-24 15:27:04 +00:00
81dc928e50 Sequencer: movie clip float buffers should be converted to internal sequencer space 2012-09-24 15:26:59 +00:00
9cb33ec68f Expose movie clip duration property to RNA 2012-09-24 15:26:54 +00:00
b4ccf4562c Fix crash on sequencer when movie clip fails to load frame 2012-09-24 14:48:24 +00:00
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
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
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
cd95229a17 No need to limit image frame offset to blender's frame range 2012-09-24 12:15:49 +00:00
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
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
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
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
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
b859d12340 inserting mask keyframes wasn't redrawing with the dope sheet 2012-09-24 00:37:14 +00:00
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
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
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
fdf55bcf66 fix for crash joining objects with shape keys - own mistake when fixing another bug. 2012-09-23 23:30:01 +00:00
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
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
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
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
fa2daf0dbd fix for crash loading old files without colormanagement. 2012-09-23 10:30:39 +00:00
acb4a03934 remove sticky customdata layers as well as sticky mtex flag 2012-09-23 10:25:22 +00:00
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
7d1a36f8f4 fix for crash backing in background mode. 2012-09-23 06:38:09 +00:00
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
3e9a09d385 fix for some crashes running operators in background mode. 2012-09-23 05:33:23 +00:00
3e6340214d fix for incorrect declaration rna_Object_free_duplilist() in cycles. 2012-09-23 05:02:06 +00:00
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
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
e5d74d2247 Fix [#32629] Checking "Invert Zoom Direction" doesn't change zoom in camera view. 2012-09-22 17:45:52 +00:00
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
6c1da4d022 code cleanup: make many functions static 2012-09-22 14:07:55 +00:00
34114b3b75 code cleanup: remove/comment unused defines 2012-09-22 13:40:31 +00:00
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
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
3ff23b753e rect/point clamping function: BLI_rct*_clamp_pt_v 2012-09-22 12:23:17 +00:00
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
bb4537eb53 revert own commit r50501 (have a better way to implement this same feature) 2012-09-22 07:22:42 +00:00
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
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
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
7f351d3b96 add back clear skin operator, removed with sticky by mistake. 2012-09-21 21:43:56 +00:00
816f01463a Updated comment 2012-09-21 20:46:19 +00:00
f61ef65adb Color Management: different fixes for byte buffers
- Color space of byte buffer for generated images haven't been
  updated properly on change

- Byte buffers weren't handling data color spaces on display transform
  properly
2012-09-21 20:44:41 +00:00
1a4b9cd39d Fix for [#32595] N shortcut (view-properties) is not shown in preview mode in sequence editor.
Main problem was in py UI code (has to set the context to INVOKE_REGION_PREVIEW for the shortcut lookup to succeed). 

Also moved the N properties item into SequencerCommon keymap, and removed the View Selected menu entry from preview-only mode View menu (thx to Ejner Fergo for pointing this out).
2012-09-21 13:29:38 +00:00
d2695c62a2 Mask Editor: make Alt+S feather shrink/fatten work better when no feather was
defined yet, previously would just stick to original curve then.
2012-09-21 12:18:14 +00:00