fix [#35154] Python: UI issues with invoke_props_dialog()
- highlighed buttons that were never pressed could be activated by accident when canceling search popup. 
- canceling a search popup on a popup would close both.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56399 954f8c5b-7b00-dc11-b283-0030488c597c
use const vars for UI arrays.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56400 954f8c5b-7b00-dc11-b283-0030488c597c
fix for an issue raised in [#35154],
the cross icon to clear a field wasn't working within popups. 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56401 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35156] Edge slide gg shortcut brings up wrong settings.

switch operator types from transform, this would normally be problematic, but transform operators share callbacks so it can be supported.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56402 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35144: Image editor is not updateing if in new window

Was a regression in own optimization on which viewer node to
update -- need to check all the windows' screens, not just
active one.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56404 954f8c5b-7b00-dc11-b283-0030488c597c
More image painting fixes:

* 2D image painting support for masking to limit the max contribution of a stroke
  to a pixel, to get it working compatible with projection painting. Not strictly
  a bugfix, but the inconsistency here was annoying.

* Fix python errors in Texture Mask panel in image editor, was missing overlay
  options.

* Clamp paint mask to 0..1 in case some texture exceeds it, this could give black
  pixels due to integer overflow.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56405 954f8c5b-7b00-dc11-b283-0030488c597c
Changes for updated operators

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56406 954f8c5b-7b00-dc11-b283-0030488c597c
Partial fix for #35108: Shortcuts 3dsmax Blender 2.67RC

Made keyap use the same select_or_deselect_all operator
as used for maya keymap instead of tricks with deselect_all.

Solves issue with selection in editor mode (reported as #3
in the original bug report).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56407 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #35147, view in backdrop and image editor in compositor don't work anymore. The active_viewer_key which sets the active node tree to use for the viewer image was not initialized in do_versions yet.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56408 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35141: stencil and 3D texture mode did not work with 2D image paint.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56410 954f8c5b-7b00-dc11-b283-0030488c597c
Fix another part of #35141: there was no way to reset the stencil transform after e.g.
scaling it along one axis, now there's a Reset Transform button.

The Image Aspect button is now also hidden unless the texture is an image texture.
And also hide the color wheel for painting tools that don't use colors.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56411 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix #35143

Animplayer treated .tif extensions as movie files, so that didn't work.
Added another hardcoded check for it, like for png tga exr jpg etc.

Why FFmpeg thinks .tif is a movie... that's for another day :)
Quicktime QTKit did same btw.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56412 954f8c5b-7b00-dc11-b283-0030488c597c
Fix compilation in release mode with strict flags

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56413 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix #35151

NLA editor: the channel list and the main area were not perfectly aligned, and could
jump a bit around. Easy fix.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56416 954f8c5b-7b00-dc11-b283-0030488c597c
More painting fixes:

* 2D image painting with textures that contained alpha did not work correctly,
  had been broken for a while.

* 2D image panels texture (mask) panels showed wrong buttons for texture overlay.

* Texture map mode 3D now also uses masking, like Tiled and Stencil the texture
  does not move along with the brush so it works fine.

* 2D image paint View mapping did not work correct, especially noticeable with
  Rake rotation.

* Masking is now disabled for the smear tool, this can't really work because
  the original image is constantly changing and gave artifacts.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56417 954f8c5b-7b00-dc11-b283-0030488c597c
fix for setting int customdata layer names not ensuring uniqueness.
also use generic layer name callbacks for vert/edge/face/poly/loop.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56418 954f8c5b-7b00-dc11-b283-0030488c597c
Properties Editor / UI:
* Render Passes -> Passes, same as Cycles. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56420 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: texture alpha masking not functional after recent commits. Mask is
used to see if area has been covered by brush, so exclude the texture
alpha and texture alpha masks from mask comparisons. Coming next:
texture masks for 2d painting.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56421 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: Overlay was getting invalidated too often in image editor making
refresh extremely slow.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56422 954f8c5b-7b00-dc11-b283-0030488c597c
Fix tiled overlay not matching up with stroke result in 2d painting.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56423 954f8c5b-7b00-dc11-b283-0030488c597c