code cleanup: warnings and style.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55977 954f8c5b-7b00-dc11-b283-0030488c597c
bge fix: framing mode "Expanded" not updated when resizing blenderplayer
now, with a 'resize' routine for the engine we can/should also recreate some
buffers that are created only at init time (e.g., 2d filters, dome fbos, ...).

This bug was always present in Blender (since 2.49 at least).

Bugfix supported by NF-UBC Nereus Program as part of the development
of OceanViz/NereusViz

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55978 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own recent addition of transform indervidual-axis in editmode, not working if the object was rotated.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55979 954f8c5b-7b00-dc11-b283-0030488c597c
Small change to the node space RNA function for opening a node group: pass the node tree as explicit argument plus an optional group node, instead of trying to get the node tree from a node property. This is more flexible for future nodes that want to change the node editor. Node group operators can rely on group node types, but the generic RNA functions should not.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55980 954f8c5b-7b00-dc11-b283-0030488c597c
Made the update callback in bNodeTree registerable in RNA, this was still missing for pynodes. This update callback can be used for "global" updates of the node tree as a whole, as opposed to "local" updates of individual nodes. Any kind of update that takes node connections into account (such as dependency sorting) and does not just work on a single node should be done in the nodetree.update function rather than node.update.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55981 954f8c5b-7b00-dc11-b283-0030488c597c
add render slot cycle forward/backwards menu items.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55982 954f8c5b-7b00-dc11-b283-0030488c597c
Image draw method option

This option replaces previously added GPU limit
option, which became tricky to follow after GLSL
display space conversion.

There're 4 modes available:
- AUTO which will try to guess which mode is
  best to use.
  Currently It'll try using GLSL and if it fails,
  will fallback to 2D textures.
  Probably it'll make sense checking on whether
  2D textures works well but currently such behavior
  shall be sufficient.
  Later we could make this method smarter (for example
  don't try to use GLSL on certain GPU or so).
- GLSL will currently behave the same way as AUTO,
  but it is intended to always try using GLSL
  (unless it can not be used because of existing
  limitation of dither and RGB curves).
- 2D Textures will use CPU-based color space conversion
  and use OGL 2D Texture to display the image.
  Image will be displayed in tiles, so there shall be
  no big GPU memory consumption.
- DrawPixels will straightly fallback to glDrawPixels
  without trying to use any fancy GPU stuff.

Hopefully this will also fix
#34943: Blender crashes when resizing the Compositing Screen Window

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55983 954f8c5b-7b00-dc11-b283-0030488c597c
Removed a lot of now-unnecessary checks from node RNA. The typeinfo pointers in bNodeTree, bNode and bNodeSocket are now always pointing to valid type structs. If a tree, node or socket has an unknown type at load time it will be pointed to a dummy "UndefinedType" struct instead, which has default settings and allows for nice debugging. Checking if node->typeinfo etc. is NULL is not necessary any more, makes code a lot easier and smaller.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55984 954f8c5b-7b00-dc11-b283-0030488c597c
minor edit to bake printouts which could get mixed because of \r.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55985 954f8c5b-7b00-dc11-b283-0030488c597c
Added 'move' functions to the inputs and outputs node socket collections (similar to move function in CollectionProperty). This is useful to change the socket order in pynodes. Otherwise one would have to remember socket values and links, remove a socket, insert a new one and copy back these values, which is tedious and error prone.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55986 954f8c5b-7b00-dc11-b283-0030488c597c
More fixes for addon i18n messages management.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55987 954f8c5b-7b00-dc11-b283-0030488c597c
Adding scrollbar default to Python console and Python Info log.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55988 954f8c5b-7b00-dc11-b283-0030488c597c
Blender is compilable with strict compiler flags again

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55989 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34961: camera fly mode would reset camera scale.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55990 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34322: cycles crash with (undo) save during threaded render. The mesh save
code was modifying pointers in the Mesh which gave crashes with another thread
accessing the data at the same time. This could crash other threaded operations
like blender internal render or physics baking too but was less likely.

As a solution I've now changed the save code that it does not modify the mesh
data structure in place but rather a copy, as undo file saving should probably
be fully read-only regardless of how an improved threading architecture might
work.

Thanks to Sergey for tracking down the cause of this crash.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55991 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for user count when adding a new library node tree. This needs to decrease user count by 1 to compensate for increment in RNA_property_pointer_set.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55992 954f8c5b-7b00-dc11-b283-0030488c597c
Add property update for radial control operator. It will be necessary
for upcoming overlay refresh commit, but since that commit is becoming
too big, better have this separate to avoid getting this lost in the
noise.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55993 954f8c5b-7b00-dc11-b283-0030488c597c
Paint refactoring commit, non-disruptive (in theory :p)

* Fix precision overflow issue with overlay previews,
* Expose alpha mask mapping to UI (still not functional but coming soon).
* More overlay refactoring:

Overlay now does minimal checking for texture refresh.
Instead, we now have invalidation flags to set an aspect of the brush
overlay as invalid. This is necessary because this way we will be able to
separate and preview different brush attributes on the overlays, using
different textures:

These attributes/aspects are:

Primary texture (main texture for sculpt, vertex, imapaint)
Secondary texture (mask/alpha texture for imapaint)
Cursor texture (cursor texture. It involves brush strength and curves)

Modified the relevant RNA property update functions and C update callback
functions to call the relevant cursor invalidation functions instead
of checking every frame for multiple properties.

Properties that affect this are:

Image changes, if image is used by current brush,
Texture slot changes, similarly
Curve changes,
Object mode change invalidates the cursor
Paint tool change invalidates the cursor.

These changes give slightly more invalidation cases than simply
comparing the relevant properties each frame, but these do not occur in
performance critical moments and it's a much more elegant system than
adding more variables to check per frame each time we add something on
the system.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55994 954f8c5b-7b00-dc11-b283-0030488c597c
Add function to query maximum texture size. Also, make texture upload
functions aware of this limit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55995 954f8c5b-7b00-dc11-b283-0030488c597c
oversight on scons, this should fix.

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