9 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)

9 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

9 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

9 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

9 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.

9 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.

9 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.

9 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

9 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

9 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

9 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

9 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.

9 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.

9 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.

9 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.

9 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

9 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.

9 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.

9 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)

9 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.

9 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.

9 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

9 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)

9 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).

9 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.

9 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.

9 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.

9 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.

9 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.

9 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 :)

9 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.

9 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.

9 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

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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. :)

9 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.

9 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!

9 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... ;)

9 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

9 years agocode cleanup: remove/comment unused defines
Campbell Barton [Sat, 22 Sep 2012 13:40:31 +0000 (13:40 +0000)]
code cleanup: remove/comment unused defines

9 years agoImprovement to own commit r50810.
Campbell Barton [Sat, 22 Sep 2012 13:23:12 +0000 (13:23 +0000)]
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.

9 years agofix [#32609] RGB Curves Mouse Pointer Problem
Campbell Barton [Sat, 22 Sep 2012 12:25:54 +0000 (12:25 +0000)]
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.

9 years agorect/point clamping function: BLI_rct*_clamp_pt_v
Campbell Barton [Sat, 22 Sep 2012 12:23:17 +0000 (12:23 +0000)]
rect/point clamping function: BLI_rct*_clamp_pt_v

9 years agoEnable predictable menu key-chaining as with r50501.
Campbell Barton [Sat, 22 Sep 2012 07:38:16 +0000 (07:38 +0000)]
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.

9 years agorevert own commit r50501 (have a better way to implement this same feature)
Campbell Barton [Sat, 22 Sep 2012 07:22:42 +0000 (07:22 +0000)]
revert own commit r50501 (have a better way to implement this same feature)

9 years agoadd a UV Project material option so UV's are calculated taking into account perspecti...
Campbell Barton [Sat, 22 Sep 2012 04:57:55 +0000 (04:57 +0000)]
add a UV Project material option so UV's are calculated taking into account perspective matrix - previously this gave artifacts with lower poly meshes.

9 years agoreplace UV project modifier matrix calculation with BKE_camera_params_* functions...
Campbell Barton [Sat, 22 Sep 2012 03:33:31 +0000 (03:33 +0000)]
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).

9 years agoAdded back "mesh.customdata_clear_skin"... followup for r50802
Thomas Dinges [Fri, 21 Sep 2012 22:33:43 +0000 (22:33 +0000)]
Added back "mesh.customdata_clear_skin"... followup for r50802

9 years agofix for crash getting a member from the operator context override, in some cases...
Campbell Barton [Fri, 21 Sep 2012 22:31:02 +0000 (22:31 +0000)]
fix for crash getting a member from the operator context override, in some cases python didnt hold the GIL.

9 years agoadd back clear skin operator, removed with sticky by mistake.
Campbell Barton [Fri, 21 Sep 2012 21:43:56 +0000 (21:43 +0000)]
add back clear skin operator, removed with sticky by mistake.

9 years agoUpdated comment
Sergey Sharybin [Fri, 21 Sep 2012 20:46:19 +0000 (20:46 +0000)]
Updated comment

9 years agoColor Management: different fixes for byte buffers
Sergey Sharybin [Fri, 21 Sep 2012 20:44:41 +0000 (20:44 +0000)]
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

9 years agoReadme:
Thomas Dinges [Fri, 21 Sep 2012 17:56:16 +0000 (17:56 +0000)]
* One link still pointed to 2.63 release logs.

9 years agoCycles:
Thomas Dinges [Fri, 21 Sep 2012 17:53:52 +0000 (17:53 +0000)]
* Change Addons Link to point to the manual instead of the dev documentation.
* Add sm_30 to Linux build configuration.

9 years agoMore fixes in Sequencer's View menu (thanks to Lockal for pointing those ;) ).
Bastien Montagne [Fri, 21 Sep 2012 15:19:26 +0000 (15:19 +0000)]
More fixes in Sequencer's View menu (thanks to Lockal for pointing those ;) ).

9 years ago* Fix for r50782, new "Geometry Data" Panel was missing in Cycles.
Thomas Dinges [Fri, 21 Sep 2012 13:56:10 +0000 (13:56 +0000)]
* Fix for r50782, new "Geometry Data" Panel was missing in Cycles.

9 years agoFix for r50790, removed operator printed error into the console...
Thomas Dinges [Fri, 21 Sep 2012 13:41:43 +0000 (13:41 +0000)]
Fix for r50790, removed operator printed error into the console...

9 years agoCycles UI:
Thomas Dinges [Fri, 21 Sep 2012 13:32:52 +0000 (13:32 +0000)]
Cycles UI:
* Followup for r50550, added checks to the "Samples" Button in World and Lamp Context to properly show the correct options.

9 years agoFix for [#32595] N shortcut (view-properties) is not shown in preview mode in sequenc...
Bastien Montagne [Fri, 21 Sep 2012 13:29:38 +0000 (13:29 +0000)]
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).

9 years agoMask Editor: make Alt+S feather shrink/fatten work better when no feather was
Brecht Van Lommel [Fri, 21 Sep 2012 12:18:14 +0000 (12:18 +0000)]
Mask Editor: make Alt+S feather shrink/fatten work better when no feather was
defined yet, previously would just stick to original curve then.

9 years agoremove sticky coords from blender and the internal render engine.
Campbell Barton [Fri, 21 Sep 2012 11:37:51 +0000 (11:37 +0000)]
remove sticky coords from blender and the internal render engine.

9 years agoremove sticky coordinates from blender, this was missing from the UI since 2.49.
Campbell Barton [Fri, 21 Sep 2012 11:19:16 +0000 (11:19 +0000)]
remove sticky coordinates from blender, this was missing from the UI since 2.49.

TODO - drop support from the renderer still.

9 years agoremove sticky buttons from the UI, this functionality may be removed and has had...
Campbell Barton [Fri, 21 Sep 2012 10:40:48 +0000 (10:40 +0000)]
remove sticky buttons from the UI, this functionality may be removed and has had no UI access since 2.49

9 years agoremove mask layer from default cube
Campbell Barton [Fri, 21 Sep 2012 07:21:35 +0000 (07:21 +0000)]
remove mask layer from default cube

9 years agocalculate sticky wasnt working very well and had a few glites -
Campbell Barton [Fri, 21 Sep 2012 06:37:42 +0000 (06:37 +0000)]
calculate sticky wasnt working very well and had a few glites -
updating data was only being done on the active object but sticly was being calculated for the selection.

split this into 2 operators, one that works on the selection and another that operates on the active object - so we can have a button in the mesh panels that calculates sticky.

also note that there was no way to calculate sticky from the UI - perhaps this feature should die a quiet death?

anyway - it works better then it used to for now.

9 years agoremove default name from CD_SKIN_NODE LayerTypeInfo so its treated as a singleton...
Campbell Barton [Fri, 21 Sep 2012 06:14:22 +0000 (06:14 +0000)]
remove default name from CD_SKIN_NODE LayerTypeInfo so its treated as a singleton. theres no need to have multiple skin layers.

9 years agoLogic Editor code cleanup > 2500 lines removed - old 2.49 UI code
Dalai Felinto [Fri, 21 Sep 2012 05:19:06 +0000 (05:19 +0000)]
Logic Editor code cleanup > 2500 lines removed - old 2.49 UI code
since last two commits the UI has all the features we had in 2.49, time to remove the old code :)

9 years ago2.49 Logic Editor functionality - Add Sensor/Controller/Actuator now possible for...
Dalai Felinto [Fri, 21 Sep 2012 04:12:55 +0000 (04:12 +0000)]
2.49 Logic Editor functionality - Add Sensor/Controller/Actuator now possible for all selected objects (not only the active one)

9 years ago2.49 feature: Game Controller State name shows up when mouse over them (the name...
Dalai Felinto [Fri, 21 Sep 2012 04:09:09 +0000 (04:09 +0000)]
2.49 feature: Game Controller State name shows up when mouse over them (the name of a state is the name of the top controller of this state)
review and small tweaks by Campbell Barton

9 years agoThere was no way to remove mesh data layers from the interface - add a panel that...
Campbell Barton [Fri, 21 Sep 2012 03:41:59 +0000 (03:41 +0000)]
There was no way to remove mesh data layers from the interface - add a panel that works in object an editmode.
currently can remove sticky/mask/skin vertex layers.

regarding the skin layer - while adding and removing the modifier normally works fine, its not 100% reliable since the mesh may be linked into another scene, or be a linked duplicate and the object with the modifier deleted.

9 years agoMake Euclidean resection "always" succeed.
Keir Mierle [Thu, 20 Sep 2012 18:55:44 +0000 (18:55 +0000)]
Make Euclidean resection "always" succeed.

The Euclidean resection code had a magical constant, 1e-3, used to
compare the results of solving an equation. This failure detection
was well-intended, trying to prevent poor solutions from getting
made without notifying the caller. Unfortunately in practice, this
threshold is too conservative. Furthermore, it is not clear the
threshold should exist at all; the purpose of the Euclidean
resection is to come up with the best solution it can; other
methods (e.g. reprojection error) should be used to compare
whether the method succeeded.

This commit changes the Euclidean EPnP code to always succeed,
causing the previous fallback to projective resection to never
run. In most cases, this will result in better reconstructions.

This should, in most cases, fix the dreaded "flipping" problem.

9 years agoFix #32579: Sequencer crash when changing render dimensions
Sergey Sharybin [Thu, 20 Sep 2012 12:59:16 +0000 (12:59 +0000)]
Fix #32579: Sequencer crash when changing render dimensions

Memory limitor's queue could be affected when it's being iterated
on enforcing limits -- that's because iteration could free color
managed image buffers.

Fixed by getting least priority element after every element was
freed. Could be optimized a bit, but it anyway shouldn't be so
slow due to specific of cache limiting and limit enforcing finish

9 years agofix [#32602] Bevel operator's transform input is inverted
Campbell Barton [Thu, 20 Sep 2012 12:42:22 +0000 (12:42 +0000)]
fix [#32602] Bevel operator's transform input is inverted
inset was inverted also

9 years agostyle cleanup
Campbell Barton [Thu, 20 Sep 2012 12:29:28 +0000 (12:29 +0000)]
style cleanup

9 years agocode cleanup: use frame as a prefix for rna properties
Campbell Barton [Thu, 20 Sep 2012 12:16:00 +0000 (12:16 +0000)]
code cleanup: use frame as a prefix for rna properties

9 years agoColor Management: avoid byte->linear->byte conversion if display colorspace matches...
Sergey Sharybin [Thu, 20 Sep 2012 11:35:33 +0000 (11:35 +0000)]
Color Management: avoid byte->linear->byte conversion if display colorspace matches image's one

Solves slowdown when re-encoding byte image sequence or movie in sequencer.

Fixes #32605: Blender vse renders take more time to render than before

9 years agoFix #32607: Color picker tool doesn't work properly: always pick black.
Sergey Sharybin [Thu, 20 Sep 2012 10:38:12 +0000 (10:38 +0000)]
Fix #32607: Color picker tool doesn't work properly: always pick black.

Regressions since color picking support from background image.

9 years agoFix #32603: Multi-Layer EXR files can't be color managed
Sergey Sharybin [Thu, 20 Sep 2012 10:07:49 +0000 (10:07 +0000)]
Fix #32603: Multi-Layer EXR files can't be color managed

Issue was caused by completely different way how multi-layer EXRs are loading,
they're bypassing general image buffer loading functions.

Solved by running color space transformation on render result construction
from multi-layer EXR image.

Also fixed issue with wrong display buffer computing for buffers with less
than 4 channels. Issues were:

- Display buffer is always expected to be RGBA
- OpenColorIO can not apply color space transformations on non-{RGB, RGBA}

9 years agoadd back -Wundef for g++, also correct clang warnings and add -Wunused-macros warning.
Campbell Barton [Thu, 20 Sep 2012 09:19:49 +0000 (09:19 +0000)]
add back -Wundef for g++, also correct clang warnings and add -Wunused-macros warning.

9 years agocode cleanup: cycles now uses system includes for boost/oiio.. etc, so we dont get...
Campbell Barton [Thu, 20 Sep 2012 09:04:43 +0000 (09:04 +0000)]
code cleanup: cycles now uses system includes for boost/oiio.. etc, so we dont get warnings from system headers.

9 years agoffmpeg was adding an include `just incase`, without a cmake find module here - just...
Campbell Barton [Thu, 20 Sep 2012 07:43:48 +0000 (07:43 +0000)]
ffmpeg was adding an include `just incase`, without a cmake find module here - just check if the dir exists.

9 years agocode cleanup: some redundant assignments in view3d_draw_bgpic()
Campbell Barton [Thu, 20 Sep 2012 05:09:35 +0000 (05:09 +0000)]
code cleanup: some redundant assignments in view3d_draw_bgpic()

9 years agocode cleanup:
Campbell Barton [Thu, 20 Sep 2012 04:56:24 +0000 (04:56 +0000)]
code cleanup:
- make view3d project names more consistent.
- remove apply_project_float() its not needed.
- update comments referencing an old function name.
- move doxygen docs into the C file, prefer they are kept here to avoid getting out of sync with code.

9 years agofix [#32604] Loop select broken with Clipped view and wireframe
Campbell Barton [Thu, 20 Sep 2012 03:45:18 +0000 (03:45 +0000)]
fix [#32604] Loop select broken with Clipped view and wireframe

9 years agoFix variable naming in the planar tracker.
Keir Mierle [Thu, 20 Sep 2012 02:27:34 +0000 (02:27 +0000)]
Fix variable naming in the planar tracker.

9 years agoAdd smarter tolerance checking in the planar tracker.
Keir Mierle [Thu, 20 Sep 2012 02:10:33 +0000 (02:10 +0000)]
Add smarter tolerance checking in the planar tracker.

The planar tracker uses Ceres for the refinement stage. During
refinement, Ceres iteratively updates the parameters with the
latest best guess. If the change in the parameters falls below a
threshold, Ceres will abort successfully ("converged").

For the case of pure translation tracking, the parameters are
exactly the two pixel shifts (dx, dy), and measuring the change in
these parameters gives a meaningful termination criterion.
However, for all the other parameterizations like affine, where
the parameterization involves affine parameters that have no
physical interpretation, Ceres is left with no way to terminate
the solver early. With the existing code, often many iterations
are run long after Ceres has found a solution sufficiently
accurate for all tracking needs. No one needs tracking with
a quadrillionth of a pixel accuracy; that time is wasted.

This patch extends the existing iteration callback that is passed
in to Ceres to check if the pattern has fallen out of the search
window, to also check if the optimizer has made a tiny step. In
particular, if the maximum shift of any patch corner between two
successful optimizer steps is less than a threshold (currently
0.005 pixels), the track is declared successful and tracking
is terminated.

This leads to dramatic speed increases in some cases, with little
to no loss in track quality. This is especially apparent when
tracking patches with affine or perspective motion models. For
example, on some tracking cases I tried, the iterations Ceres took
went from 50 to 3.

9 years agostyle cleanup
Campbell Barton [Thu, 20 Sep 2012 01:32:13 +0000 (01:32 +0000)]
style cleanup

9 years agocode cleanup: remove unused macros, commet some which may be useful later - or good...
Campbell Barton [Thu, 20 Sep 2012 01:02:39 +0000 (01:02 +0000)]
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc

9 years agocode cleanup: c++ - use empty() rather than size(), use prefix operators for non...
Campbell Barton [Thu, 20 Sep 2012 00:55:32 +0000 (00:55 +0000)]
code cleanup: c++ - use empty() rather than size(), use prefix operators for non-primitive types - recommended for non primitive types.

9 years agoFix #32596: bones in armature created from skin modifier have wrong envelope
Brecht Van Lommel [Thu, 20 Sep 2012 00:53:25 +0000 (00:53 +0000)]
Fix #32596: bones in armature created from skin modifier have wrong envelope

9 years agoFix #32598: clamp blender internal alpha channel to 0..1, and RGB to 0..inf,
Brecht Van Lommel [Thu, 20 Sep 2012 00:39:27 +0000 (00:39 +0000)]
Fix #32598: clamp blender internal alpha channel to 0..1, and RGB to 0..inf,
to avoid compositing issues. The values can go out of bounds due to sharp
pixel filters.

In Cycles the alpha channel is already clamped, and there are no pixel filters
that could cause negative RGB values.

9 years agoFix #32601: armature select similar missing from select menu.
Brecht Van Lommel [Thu, 20 Sep 2012 00:10:26 +0000 (00:10 +0000)]
Fix #32601: armature select similar missing from select menu.

9 years agoFix #31888: cycles crashes using movie for image texture. This is not supported
Brecht Van Lommel [Wed, 19 Sep 2012 23:55:12 +0000 (23:55 +0000)]
Fix #31888: cycles crashes using movie for image texture. This is not supported
but should not crash either. This fix is more of a workaround, the crash seems
to be in openimageio or one of the libraries it uses.

9 years agoDetect too-small planar tracking patches.
Keir Mierle [Wed, 19 Sep 2012 22:25:02 +0000 (22:25 +0000)]
Detect too-small planar tracking patches.

The planar tracker did not detect very skinny patches which have
effectively zero area and are untrackable. This adds detection and
rejection of patterns with zero area. This fixes a crash found by
during Mango production.